public class DateOnly extends ValueType
.NET documentation at https://learn.microsoft.com/dotnet/api/System.DateOnly
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
|
static java.lang.String |
assemblyShortName
Assembly name: System.Private.CoreLib
|
static java.lang.String |
className
Qualified class name: System.DateOnly
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
DateOnly() |
DateOnly(int year,
int month,
int day)
Initializes a new instance by invoking the .NET constructor.
|
DateOnly(int year,
int month,
int day,
Calendar calendar)
Initializes a new instance by invoking the .NET constructor.
|
DateOnly(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
DateOnly |
AddDays(int value)
Invokes the .NET member AddDays.
|
DateOnly |
AddMonths(int value)
Invokes the .NET member AddMonths.
|
DateOnly |
AddYears(int value)
Invokes the .NET member AddYears.
|
static DateOnly |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into DateOnly, a cast assert is made to check if types are compatible. |
int |
CompareTo(DateOnly value)
Invokes the .NET member CompareTo.
|
int |
CompareTo(NetObject value)
Invokes the .NET member CompareTo.
|
void |
Deconstruct(JCORefOut<java.util.concurrent.atomic.AtomicInteger> year,
JCORefOut<java.util.concurrent.atomic.AtomicInteger> month,
JCORefOut<java.util.concurrent.atomic.AtomicInteger> day)
Invokes the .NET member Deconstruct.
|
boolean |
Equals(DateOnly value)
Invokes the .NET member Equals.
|
static DateOnly |
FromDateTime(DateTime dateTime)
Invokes the .NET member FromDateTime.
|
static DateOnly |
FromDayNumber(int dayNumber)
Invokes the .NET member FromDayNumber.
|
int |
getDay()
Gets the value of the .NET property Day.
|
int |
getDayNumber()
Gets the value of the .NET property DayNumber.
|
DayOfWeek |
getDayOfWeek()
Gets the value of the .NET property DayOfWeek.
|
int |
getDayOfYear()
Gets the value of the .NET property DayOfYear.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
static DateOnly |
getMaxValue()
Gets the value of the .NET property MaxValue.
|
static DateOnly |
getMinValue()
Gets the value of the .NET property MinValue.
|
int |
getMonth()
Gets the value of the .NET property Month.
|
int |
getYear()
Gets the value of the .NET property Year.
|
static DateOnly |
Parse(java.lang.String s)
Invokes the .NET member Parse.
|
static DateOnly |
Parse(java.lang.String s,
IFormatProvider provider)
Invokes the .NET member Parse.
|
static DateOnly |
Parse(java.lang.String s,
IFormatProvider provider,
DateTimeStyles style)
Invokes the .NET member Parse.
|
static DateOnly |
ParseExact(java.lang.String dupParam0,
JCORefOut dupParam1)
Invokes the .NET member ParseExact.
|
static DateOnly |
ParseExact(java.lang.String dupParam0,
JCORefOut dupParam1,
IFormatProvider dupParam2,
DateTimeStyles dupParam3)
Invokes the .NET member ParseExact.
|
static DateOnly |
ParseExact(java.lang.String s,
java.lang.String format)
Invokes the .NET member ParseExact.
|
static DateOnly |
ParseExact(java.lang.String s,
java.lang.String[] formats)
Invokes the .NET member ParseExact.
|
static DateOnly |
ParseExact(java.lang.String s,
java.lang.String[] formats,
IFormatProvider provider,
DateTimeStyles style)
Invokes the .NET member ParseExact.
|
static DateOnly |
ParseExact(java.lang.String s,
java.lang.String format,
IFormatProvider provider,
DateTimeStyles style)
Invokes the .NET member ParseExact.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
DateTime |
ToDateTime(TimeOnly time)
Invokes the .NET member ToDateTime.
|
DateTime |
ToDateTime(TimeOnly time,
DateTimeKind kind)
Invokes the .NET member ToDateTime.
|
java.lang.String |
ToLongDateString()
Invokes the .NET member ToLongDateString.
|
java.lang.String |
ToShortDateString()
Invokes the .NET member ToShortDateString.
|
java.lang.String |
ToString(IFormatProvider provider)
Invokes the .NET member ToString.
|
java.lang.String |
ToString(java.lang.String format)
Invokes the .NET member ToString.
|
java.lang.String |
ToString(java.lang.String format,
IFormatProvider provider)
Invokes the .NET member ToString.
|
static boolean |
TryParse(java.lang.String s,
IFormatProvider provider,
DateTimeStyles style,
JCORefOut<DateOnly> result)
Invokes the .NET member TryParse.
|
static boolean |
TryParse(java.lang.String s,
IFormatProvider provider,
JCORefOut<DateOnly> result)
Invokes the .NET member TryParse.
|
static boolean |
TryParse(java.lang.String s,
JCORefOut<DateOnly> result)
Invokes the .NET member TryParse.
|
static boolean |
TryParseExact(java.lang.String s,
java.lang.String[] formats,
IFormatProvider provider,
DateTimeStyles style,
JCORefOut<DateOnly> result)
Invokes the .NET member TryParseExact.
|
static boolean |
TryParseExact(java.lang.String s,
java.lang.String[] formats,
JCORefOut<DateOnly> result)
Invokes the .NET member TryParseExact.
|
static boolean |
TryParseExact(java.lang.String s,
java.lang.String format,
IFormatProvider provider,
DateTimeStyles style,
JCORefOut<DateOnly> result)
Invokes the .NET member TryParseExact.
|
static boolean |
TryParseExact(java.lang.String s,
java.lang.String format,
JCORefOut<DateOnly> result)
Invokes the .NET member TryParseExact.
|
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public DateOnly()
throws java.lang.Throwable
java.lang.Throwablepublic DateOnly(int year,
int month,
int day)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
IndexOutOfRangeException
year - the argument of type intmonth - the argument of type intday - the argument of type intjava.lang.Throwable - if the .NET constructor failsArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic DateOnly(int year,
int month,
int day,
Calendar calendar)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
ArgumentNullException,
ArgumentOutOfRangeException
year - the argument of type intmonth - the argument of type intday - the argument of type intcalendar - the argument of type Calendarjava.lang.Throwable - if the .NET constructor failsNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itpublic DateOnly(java.lang.Object instance)
throws java.lang.Throwable
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic DateOnly AddDays(int value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
value - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic DateOnly AddMonths(int value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException
value - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic DateOnly AddYears(int value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException
value - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic static DateOnly cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into DateOnly, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedDateOnly instancejava.lang.Throwable - in case of error during cast operationpublic int CompareTo(DateOnly value) throws java.lang.Throwable
value - the argument of type DateOnlyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic int CompareTo(NetObject value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
value - the argument of type NetObjectjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic void Deconstruct(JCORefOut<java.util.concurrent.atomic.AtomicInteger> year, JCORefOut<java.util.concurrent.atomic.AtomicInteger> month, JCORefOut<java.util.concurrent.atomic.AtomicInteger> day) throws java.lang.Throwable
year - the argument of type JCORefOut<java.util.concurrent.atomic.AtomicInteger>month - the argument of type JCORefOut<java.util.concurrent.atomic.AtomicInteger>day - the argument of type JCORefOut<java.util.concurrent.atomic.AtomicInteger>java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean Equals(DateOnly value) throws java.lang.Throwable
value - the argument of type DateOnlyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static DateOnly FromDateTime(DateTime dateTime) throws java.lang.Throwable
dateTime - the argument of type DateTimejava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static DateOnly FromDayNumber(int dayNumber) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
dayNumber - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic int getDay()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic int getDayNumber()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic DayOfWeek getDayOfWeek() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic int getDayOfYear()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class ValueTypepublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class ValueTypepublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class ValueTypenull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class ValueTypepublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class ValueTypepublic static DateOnly getMaxValue() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static DateOnly getMinValue() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic int getMonth()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic int getYear()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static DateOnly Parse(java.lang.String s) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, CultureNotFoundException, IndexOutOfRangeException, FormatException
s - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itpublic static DateOnly Parse(java.lang.String s, IFormatProvider provider) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, CultureNotFoundException, IndexOutOfRangeException, FormatException
s - the argument of type java.lang.Stringprovider - the argument of type IFormatProviderjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itpublic static DateOnly Parse(java.lang.String s, IFormatProvider provider, DateTimeStyles style) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException, IndexOutOfRangeException, NullReferenceException, OutOfMemoryException, ExternalException, OverflowException, FormatException
s - the argument of type java.lang.Stringprovider - the argument of type IFormatProviderstyle - the argument of type DateTimeStylesjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentNullException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itNullReferenceException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itExternalException - if the .NET member raises itOverflowException - if the .NET member raises itFormatException - if the .NET member raises itpublic static DateOnly ParseExact(java.lang.String dupParam0, JCORefOut dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, OverflowException, FormatException
dupParam0 - the argument of type java.lang.StringdupParam1 - the argument of type JCORefOutjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOverflowException - if the .NET member raises itFormatException - if the .NET member raises itpublic static DateOnly ParseExact(java.lang.String dupParam0, JCORefOut dupParam1, IFormatProvider dupParam2, DateTimeStyles dupParam3) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException, IndexOutOfRangeException, NullReferenceException, OverflowException, OutOfMemoryException, FormatException
dupParam0 - the argument of type java.lang.StringdupParam1 - the argument of type JCORefOutdupParam2 - the argument of type IFormatProviderdupParam3 - the argument of type DateTimeStylesjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentNullException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itNullReferenceException - if the .NET member raises itOverflowException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itFormatException - if the .NET member raises itpublic static DateOnly ParseExact(java.lang.String s, java.lang.String format) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, TypeInitializationException, NullReferenceException, OverflowException, FormatException
s - the argument of type java.lang.Stringformat - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itTypeInitializationException - if the .NET member raises itNullReferenceException - if the .NET member raises itOverflowException - if the .NET member raises itFormatException - if the .NET member raises itpublic static DateOnly ParseExact(java.lang.String s, java.lang.String[] formats) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, OverflowException, FormatException
s - the argument of type java.lang.Stringformats - the argument of type java.lang.String[]java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOverflowException - if the .NET member raises itFormatException - if the .NET member raises itpublic static DateOnly ParseExact(java.lang.String s, java.lang.String[] formats, IFormatProvider provider, DateTimeStyles style) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException, IndexOutOfRangeException, NullReferenceException, OverflowException, OutOfMemoryException, FormatException
s - the argument of type java.lang.Stringformats - the argument of type java.lang.String[]provider - the argument of type IFormatProviderstyle - the argument of type DateTimeStylesjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentNullException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itNullReferenceException - if the .NET member raises itOverflowException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itFormatException - if the .NET member raises itpublic static DateOnly ParseExact(java.lang.String s, java.lang.String format, IFormatProvider provider, DateTimeStyles style) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException, IndexOutOfRangeException, TypeInitializationException, NullReferenceException, OverflowException, OutOfMemoryException, FormatException
s - the argument of type java.lang.Stringformat - the argument of type java.lang.Stringprovider - the argument of type IFormatProviderstyle - the argument of type DateTimeStylesjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentNullException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itTypeInitializationException - if the .NET member raises itNullReferenceException - if the .NET member raises itOverflowException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itFormatException - if the .NET member raises itpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class ValueTypeinstance - the new underlying objectpublic DateTime ToDateTime(TimeOnly time) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
time - the argument of type TimeOnlyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic DateTime ToDateTime(TimeOnly time, DateTimeKind kind) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
time - the argument of type TimeOnlykind - the argument of type DateTimeKindjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic java.lang.String ToLongDateString()
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
IndexOutOfRangeException,
PlatformNotSupportedException,
ArgumentNullException,
ArgumentOutOfRangeException,
OutOfMemoryException,
FormatException,
InvalidOperationException,
CultureNotFoundException,
OverflowException
java.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itFormatException - if the .NET member raises itInvalidOperationException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itOverflowException - if the .NET member raises itpublic java.lang.String ToShortDateString()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String ToString(IFormatProvider provider) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, OutOfMemoryException, FormatException, CultureNotFoundException
provider - the argument of type IFormatProviderjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentNullException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itFormatException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itpublic java.lang.String ToString(java.lang.String format)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
IndexOutOfRangeException,
PlatformNotSupportedException,
ArgumentNullException,
OutOfMemoryException,
FormatException,
CultureNotFoundException
format - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentNullException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itFormatException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itpublic java.lang.String ToString(java.lang.String format,
IFormatProvider provider)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
IndexOutOfRangeException,
NullReferenceException,
OutOfMemoryException,
SecurityException,
OverflowException,
FormatException,
CultureNotFoundException
format - the argument of type java.lang.Stringprovider - the argument of type IFormatProviderjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itNullReferenceException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itSecurityException - if the .NET member raises itOverflowException - if the .NET member raises itFormatException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itpublic static boolean TryParse(java.lang.String s,
IFormatProvider provider,
DateTimeStyles style,
JCORefOut<DateOnly> result)
throws java.lang.Throwable,
PlatformNotSupportedException,
NullReferenceException,
NotSupportedException,
ArgumentException,
OutOfMemoryException,
ExternalException,
ArgumentNullException,
InvalidOperationException,
CultureNotFoundException,
IndexOutOfRangeException,
ArgumentOutOfRangeException,
OverflowException
s - the argument of type java.lang.Stringprovider - the argument of type IFormatProviderstyle - the argument of type DateTimeStylesresult - the argument of type JCORefOut<DateOnly>java.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itNullReferenceException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itExternalException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itOverflowException - if the .NET member raises itpublic static boolean TryParse(java.lang.String s,
IFormatProvider provider,
JCORefOut<DateOnly> result)
throws java.lang.Throwable,
PlatformNotSupportedException,
NotSupportedException,
ArgumentException,
ArgumentNullException,
CultureNotFoundException,
IndexOutOfRangeException,
ArgumentOutOfRangeException
s - the argument of type java.lang.Stringprovider - the argument of type IFormatProviderresult - the argument of type JCORefOut<DateOnly>java.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentNullException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itpublic static boolean TryParse(java.lang.String s,
JCORefOut<DateOnly> result)
throws java.lang.Throwable,
PlatformNotSupportedException,
NotSupportedException,
ArgumentException,
ArgumentNullException,
CultureNotFoundException,
IndexOutOfRangeException,
ArgumentOutOfRangeException
s - the argument of type java.lang.Stringresult - the argument of type JCORefOut<DateOnly>java.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentNullException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itpublic static boolean TryParseExact(java.lang.String s,
java.lang.String[] formats,
IFormatProvider provider,
DateTimeStyles style,
JCORefOut<DateOnly> result)
throws java.lang.Throwable,
PlatformNotSupportedException,
NullReferenceException,
NotSupportedException,
IndexOutOfRangeException,
ArgumentOutOfRangeException,
ArgumentException,
OverflowException,
InvalidOperationException,
ArgumentNullException,
OutOfMemoryException,
FormatException,
CultureNotFoundException,
ArrayTypeMismatchException
s - the argument of type java.lang.Stringformats - the argument of type java.lang.String[]provider - the argument of type IFormatProviderstyle - the argument of type DateTimeStylesresult - the argument of type JCORefOut<DateOnly>java.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itNullReferenceException - if the .NET member raises itNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentException - if the .NET member raises itOverflowException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itFormatException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic static boolean TryParseExact(java.lang.String s,
java.lang.String[] formats,
JCORefOut<DateOnly> result)
throws java.lang.Throwable,
PlatformNotSupportedException,
NotSupportedException,
IndexOutOfRangeException,
ArgumentOutOfRangeException,
OverflowException,
ArgumentException,
InvalidOperationException,
ArgumentNullException,
FormatException,
ArrayTypeMismatchException
s - the argument of type java.lang.Stringformats - the argument of type java.lang.String[]result - the argument of type JCORefOut<DateOnly>java.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itOverflowException - if the .NET member raises itArgumentException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itFormatException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic static boolean TryParseExact(java.lang.String s,
java.lang.String format,
IFormatProvider provider,
DateTimeStyles style,
JCORefOut<DateOnly> result)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
IndexOutOfRangeException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
ArgumentNullException,
RankException,
ArrayTypeMismatchException,
TypeInitializationException,
NullReferenceException,
OverflowException,
InvalidOperationException,
OutOfMemoryException,
FormatException,
CultureNotFoundException
s - the argument of type java.lang.Stringformat - the argument of type java.lang.Stringprovider - the argument of type IFormatProviderstyle - the argument of type DateTimeStylesresult - the argument of type JCORefOut<DateOnly>java.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itTypeInitializationException - if the .NET member raises itNullReferenceException - if the .NET member raises itOverflowException - if the .NET member raises itInvalidOperationException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itFormatException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itpublic static boolean TryParseExact(java.lang.String s,
java.lang.String format,
JCORefOut<DateOnly> result)
throws java.lang.Throwable,
IndexOutOfRangeException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
RankException,
ArgumentException,
ArrayTypeMismatchException,
TypeInitializationException,
NullReferenceException,
NotSupportedException,
OverflowException,
InvalidOperationException,
ArgumentNullException,
FormatException
s - the argument of type java.lang.Stringformat - the argument of type java.lang.Stringresult - the argument of type JCORefOut<DateOnly>java.lang.Throwable - if the call fails in the bridge or in the CLRIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itArgumentException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itTypeInitializationException - if the .NET member raises itNullReferenceException - if the .NET member raises itNotSupportedException - if the .NET member raises itOverflowException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itFormatException - if the .NET member raises it