struct DateTime

in global :: System

Represents an instant in time, typically expressed as a date and time of day.


public DateTime( int year, int month, int day )

Initializes a new instance of the structure to the specified year, month, and day.

  • year The year (1 through 9999).
  • month The month (1 through 12).
  • day The day (1 through the number of days in ).

public DateTime( int year, int month, int day, Calendar calendar )

Initializes a new instance of the structure to the specified year, month, and day for the specified calendar.

  • year The year (1 through the number of years in ).
  • month The month (1 through the number of months in ).
  • day The day (1 through the number of days in ).
  • calendar The calendar that is used to interpret , , and .

public DateTime( int year, int month, int day, int hour, int minute, int second )

Initializes a new instance of the structure to the specified year, month, day, hour, minute, and second.

  • year The year (1 through 9999).
  • month The month (1 through 12).
  • day The day (1 through the number of days in ).
  • hour The hours (0 through 23).
  • minute The minutes (0 through 59).
  • second The seconds (0 through 59).

public DateTime( int year, int month, int day, int hour, int minute, int second, DateTimeKind kind )

Initializes a new instance of the structure to the specified year, month, day, hour, minute, second, and Coordinated Universal Time (UTC) or local time.

  • year The year (1 through 9999).
  • month The month (1 through 12).
  • day The day (1 through the number of days in ).
  • hour The hours (0 through 23).
  • minute The minutes (0 through 59).
  • second The seconds (0 through 59).
  • kind One of the enumeration values that indicates whether , , , , and specify a local time, Coordinated Universal Time (UTC), or neither.

public DateTime( int year, int month, int day, int hour, int minute, int second, Calendar calendar )

Initializes a new instance of the structure to the specified year, month, day, hour, minute, and second for the specified calendar.

  • year The year (1 through the number of years in ).
  • month The month (1 through the number of months in ).
  • day The day (1 through the number of days in ).
  • hour The hours (0 through 23).
  • minute The minutes (0 through 59).
  • second The seconds (0 through 59).
  • calendar The calendar that is used to interpret , , and .

public DateTime( int year, int month, int day, int hour, int minute, int second, int millisecond )

Initializes a new instance of the structure to the specified year, month, day, hour, minute, second, and millisecond.

  • year The year (1 through 9999).
  • month The month (1 through 12).
  • day The day (1 through the number of days in ).
  • hour The hours (0 through 23).
  • minute The minutes (0 through 59).
  • second The seconds (0 through 59).
  • millisecond The milliseconds (0 through 999).

public DateTime( int year, int month, int day, int hour, int minute, int second, int millisecond, DateTimeKind kind )

Initializes a new instance of the structure to the specified year, month, day, hour, minute, second, millisecond, and Coordinated Universal Time (UTC) or local time.

  • year The year (1 through 9999).
  • month The month (1 through 12).
  • day The day (1 through the number of days in ).
  • hour The hours (0 through 23).
  • minute The minutes (0 through 59).
  • second The seconds (0 through 59).
  • millisecond The milliseconds (0 through 999).
  • kind One of the enumeration values that indicates whether , , , , , , and specify a local time, Coordinated Universal Time (UTC), or neither.

public DateTime( int year, int month, int day, int hour, int minute, int second, int millisecond, Calendar calendar )

Initializes a new instance of the structure to the specified year, month, day, hour, minute, second, and millisecond for the specified calendar.

  • year The year (1 through the number of years in ).
  • month The month (1 through the number of months in ).
  • day The day (1 through the number of days in ).
  • hour The hours (0 through 23).
  • minute The minutes (0 through 59).
  • second The seconds (0 through 59).
  • millisecond The milliseconds (0 through 999).
  • calendar The calendar that is used to interpret , , and .

public DateTime( int year, int month, int day, int hour, int minute, int second, int millisecond, Calendar calendar, DateTimeKind kind )

Initializes a new instance of the structure to the specified year, month, day, hour, minute, second, millisecond, and Coordinated Universal Time (UTC) or local time for the specified calendar.

  • year The year (1 through the number of years in ).
  • month The month (1 through the number of months in ).
  • day The day (1 through the number of days in ).
  • hour The hours (0 through 23).
  • minute The minutes (0 through 59).
  • second The seconds (0 through 59).
  • millisecond The milliseconds (0 through 999).
  • calendar The calendar that is used to interpret , , and .
  • kind One of the enumeration values that indicates whether , , , , , , and specify a local time, Coordinated Universal Time (UTC), or neither.

public DateTime( long ticks )

Initializes a new instance of the structure to a specified number of ticks.

  • ticks A date and time expressed in the number of 100-nanosecond intervals that have elapsed since January 1, 0001 at 00:00:00.000 in the Gregorian calendar.

public DateTime( long ticks, DateTimeKind kind )

Initializes a new instance of the structure to a specified number of ticks and to Coordinated Universal Time (UTC) or local time.

  • ticks A date and time expressed in the number of 100-nanosecond intervals that have elapsed since January 1, 0001 at 00:00:00.000 in the Gregorian calendar.
  • kind One of the enumeration values that indicates whether specifies a local time, Coordinated Universal Time (UTC), or neither.

public DateTime Add( TimeSpan value )

Returns a new that adds the value of the specified to the value of this instance.

  • value A positive or negative time interval.
  • Returns An object whose value is the sum of the date and time represented by this instance and the time interval represented by .

public DateTime AddDays( double value )

Returns a new that adds the specified number of days to the value of this instance.

  • value A number of whole and fractional days. The parameter can be negative or positive.
  • Returns An object whose value is the sum of the date and time represented by this instance and the number of days represented by .

public DateTime AddHours( double value )

Returns a new that adds the specified number of hours to the value of this instance.

  • value A number of whole and fractional hours. The parameter can be negative or positive.
  • Returns An object whose value is the sum of the date and time represented by this instance and the number of hours represented by .

public DateTime AddMilliseconds( double value )

Returns a new that adds the specified number of milliseconds to the value of this instance.

  • value A number of whole and fractional milliseconds. The parameter can be negative or positive. Note that this value is rounded to the nearest integer.
  • Returns An object whose value is the sum of the date and time represented by this instance and the number of milliseconds represented by .

public DateTime AddMinutes( double value )

Returns a new that adds the specified number of minutes to the value of this instance.

  • value A number of whole and fractional minutes. The parameter can be negative or positive.
  • Returns An object whose value is the sum of the date and time represented by this instance and the number of minutes represented by .

public DateTime AddMonths( int months )

Returns a new that adds the specified number of months to the value of this instance.

  • months A number of months. The parameter can be negative or positive.
  • Returns An object whose value is the sum of the date and time represented by this instance and .

public DateTime AddSeconds( double value )

Returns a new that adds the specified number of seconds to the value of this instance.

  • value A number of whole and fractional seconds. The parameter can be negative or positive.
  • Returns An object whose value is the sum of the date and time represented by this instance and the number of seconds represented by .

public DateTime AddTicks( long value )

Returns a new that adds the specified number of ticks to the value of this instance.

  • value A number of 100-nanosecond ticks. The parameter can be positive or negative.
  • Returns An object whose value is the sum of the date and time represented by this instance and the time represented by .

public DateTime AddYears( int value )

Returns a new that adds the specified number of years to the value of this instance.

  • value A number of years. The parameter can be negative or positive.
  • Returns An object whose value is the sum of the date and time represented by this instance and the number of years represented by .

public static int Compare( DateTime t1, DateTime t2 )

Compares two instances of and returns an integer that indicates whether the first instance is earlier than, the same as, or later than the second instance.

  • t1 The first object to compare.
  • t2 The second object to compare.
  • Returns A signed number indicating the relative values of and . Value Type Condition Less than zero is earlier than . Zero is the same as . Greater than zero is later than .

public int CompareTo( DateTime value )

Compares the value of this instance to a specified value and returns an integer that indicates whether this instance is earlier than, the same as, or later than the specified value.

  • value The object to compare to the current instance.
  • Returns A signed number indicating the relative values of this instance and the parameter. Value Description Less than zero This instance is earlier than . Zero This instance is the same as . Greater than zero This instance is later than .

public int CompareTo( object value )

Compares the value of this instance to a specified object that contains a specified value, and returns an integer that indicates whether this instance is earlier than, the same as, or later than the specified value.

  • value A boxed object to compare, or .
  • Returns A signed number indicating the relative values of this instance and . Value Description Less than zero This instance is earlier than . Zero This instance is the same as . Greater than zero This instance is later than , or is .

public DateTime Date { get; }

Gets the date component of this instance.

  • Returns A new object with the same date as this instance, and the time value set to 12:00:00 midnight (00:00:00).

public int Day { get; }

Gets the day of the month represented by this instance.

  • Returns The day component, expressed as a value between 1 and 31.

public DayOfWeek DayOfWeek { get; }

Gets the day of the week represented by this instance.

  • Returns An enumerated constant that indicates the day of the week of this value.

public int DayOfYear { get; }

Gets the day of the year represented by this instance.

  • Returns The day of the year, expressed as a value between 1 and 366.

public static int DaysInMonth( int year, int month )

Returns the number of days in the specified month and year.

  • year The year.
  • month The month (a number ranging from 1 to 12).
  • Returns The number of days in for the specified . For example, if equals 2 for February, the return value is 28 or 29 depending upon whether is a leap year.

public bool Equals( DateTime value )

Returns a value indicating whether the value of this instance is equal to the value of the specified instance.

  • value The object to compare to this instance.
  • Returns if the parameter equals the value of this instance; otherwise, .

public static bool Equals( DateTime t1, DateTime t2 )

Returns a value indicating whether two instances have the same date and time value.

  • t1 The first object to compare.
  • t2 The second object to compare.
  • Returns if the two values are equal; otherwise, .

public bool Equals( object value )

Returns a value indicating whether this instance is equal to a specified object.

  • value The object to compare to this instance.
  • Returns if is an instance of and equals the value of this instance; otherwise, .

public static DateTime FromBinary( long dateData )

Deserializes a 64-bit binary value and recreates an original serialized object.

  • dateData A 64-bit signed integer that encodes the property in a 2-bit field and the property in a 62-bit field.
  • Returns An object that is equivalent to the object that was serialized by the method.

public static DateTime FromFileTime( long fileTime )

Converts the specified Windows file time to an equivalent local time.

  • fileTime A Windows file time expressed in ticks.
  • Returns An object that represents the local time equivalent of the date and time represented by the parameter.

public static DateTime FromFileTimeUtc( long fileTime )

Converts the specified Windows file time to an equivalent UTC time.

  • fileTime A Windows file time expressed in ticks.
  • Returns An object that represents the UTC time equivalent of the date and time represented by the parameter.

public static DateTime FromOADate( double d )

Returns a equivalent to the specified OLE Automation Date.

  • d An OLE Automation Date value.
  • Returns An object that represents the same date and time as .

public string[] GetDateTimeFormats( char format )

Converts the value of this instance to all the string representations supported by the specified standard date and time format specifier.

  • format A standard date and time format string.
  • Returns A string array where each element is the representation of the value of this instance formatted with the standard date and time format specifier.

public string[] GetDateTimeFormats( char format, IFormatProvider provider )

Converts the value of this instance to all the string representations supported by the specified standard date and time format specifier and culture-specific formatting information.

  • format A date and time format string.
  • provider An object that supplies culture-specific formatting information about this instance.
  • Returns A string array where each element is the representation of the value of this instance formatted with one of the standard date and time format specifiers.

public string[] GetDateTimeFormats( IFormatProvider provider )

Converts the value of this instance to all the string representations supported by the standard date and time format specifiers and the specified culture-specific formatting information.

  • provider An object that supplies culture-specific formatting information about this instance.
  • Returns A string array where each element is the representation of the value of this instance formatted with one of the standard date and time format specifiers.

public int Hour { get; }

Gets the hour component of the date represented by this instance.

  • Returns The hour component, expressed as a value between 0 and 23.

public static bool IsLeapYear( int year )

Returns an indication whether the specified year is a leap year.

  • year A 4-digit year.
  • Returns if is a leap year; otherwise, .

public DateTimeKind Kind { get; }

Gets a value that indicates whether the time represented by this instance is based on local time, Coordinated Universal Time (UTC), or neither.

  • Returns One of the enumeration values that indicates what the current time represents. The default is .

public static DateTime MaxValue

Represents the largest possible value of . This field is read-only.

public int Millisecond { get; }

Gets the milliseconds component of the date represented by this instance.

  • Returns The milliseconds component, expressed as a value between 0 and 999.

public int Minute { get; }

Gets the minute component of the date represented by this instance.

  • Returns The minute component, expressed as a value between 0 and 59.

public static DateTime MinValue

Represents the smallest possible value of . This field is read-only.

public int Month { get; }

Gets the month component of the date represented by this instance.

  • Returns The month component, expressed as a value between 1 and 12.

public static DateTime Now { get; }

Gets a object that is set to the current date and time on this computer, expressed as the local time.

  • Returns An object whose value is the current local date and time.

public static DateTime op_Addition( DateTime d, TimeSpan t )

Adds a specified time interval to a specified date and time, yielding a new date and time.

  • d The date and time value to add.
  • t The time interval to add.
  • Returns An object that is the sum of the values of and .

public static bool op_Equality( DateTime d1, DateTime d2 )

Determines whether two specified instances of are equal.

  • d1 The first object to compare.
  • d2 The second object to compare.
  • Returns if and represent the same date and time; otherwise, .

public static bool op_GreaterThan( DateTime t1, DateTime t2 )

Determines whether one specified is later than another specified .

  • t1 The first object to compare.
  • t2 The second object to compare.
  • Returns if is later than ; otherwise, .

public static bool op_GreaterThanOrEqual( DateTime t1, DateTime t2 )

Determines whether one specified represents a date and time that is the same as or later than another specified .

  • t1 The first object to compare.
  • t2 The second object to compare.
  • Returns if is the same as or later than ; otherwise, .

public static bool op_Inequality( DateTime d1, DateTime d2 )

Determines whether two specified instances of are not equal.

  • d1 The first object to compare.
  • d2 The second object to compare.
  • Returns if and do not represent the same date and time; otherwise, .

public static bool op_LessThan( DateTime t1, DateTime t2 )

Determines whether one specified is earlier than another specified .

  • t1 The first object to compare.
  • t2 The second object to compare.
  • Returns if is earlier than ; otherwise, .

public static bool op_LessThanOrEqual( DateTime t1, DateTime t2 )

Determines whether one specified represents a date and time that is the same as or earlier than another specified .

  • t1 The first object to compare.
  • t2 The second object to compare.
  • Returns if is the same as or earlier than ; otherwise, .

public static TimeSpan op_Subtraction( DateTime d1, DateTime d2 )

Subtracts a specified date and time from another specified date and time and returns a time interval.

  • d1 The date and time value to subtract from (the minuend).
  • d2 The date and time value to subtract (the subtrahend).
  • Returns The time interval between and ; that is, minus .

public static DateTime op_Subtraction( DateTime d, TimeSpan t )

Subtracts a specified time interval from a specified date and time and returns a new date and time.

  • d The date and time value to subtract from.
  • t The time interval to subtract.
  • Returns An object whose value is the value of minus the value of .

public static DateTime Parse( string s )

Converts the string representation of a date and time to its equivalent by using the conventions of the current thread culture.

  • s A string that contains a date and time to convert. See The string to parse for more information.
  • Returns An object that is equivalent to the date and time contained in .

public static DateTime Parse( string s, IFormatProvider provider )

Converts the string representation of a date and time to its equivalent by using culture-specific format information.

  • s A string that contains a date and time to convert. See The string to parse for more information.
  • provider An object that supplies culture-specific format information about . See Parsing and cultural conventions
  • Returns An object that is equivalent to the date and time contained in as specified by .

public static DateTime Parse( string s, IFormatProvider provider, DateTimeStyles styles )

Converts the string representation of a date and time to its equivalent by using culture-specific format information and a formatting style.

  • s A string that contains a date and time to convert. See The string to parse for more information.
  • provider An object that supplies culture-specific formatting information about . See Parsing and cultural conventions
  • styles A bitwise combination of the enumeration values that indicates the style elements that can be present in for the parse operation to succeed, and that defines how to interpret the parsed date in relation to the current time zone or the current date. A typical value to specify is .
  • Returns An object that is equivalent to the date and time contained in , as specified by and .

public static DateTime ParseExact( string s, string format, IFormatProvider provider )

Converts the specified string representation of a date and time to its equivalent using the specified format and culture-specific format information. The format of the string representation must match the specified format exactly.

  • s A string that contains a date and time to convert.
  • format A format specifier that defines the required format of . For more information, see the Remarks section.
  • provider An object that supplies culture-specific format information about .
  • Returns An object that is equivalent to the date and time contained in , as specified by and .

public static DateTime ParseExact( string s, string format, IFormatProvider provider, DateTimeStyles style )

Converts the specified string representation of a date and time to its equivalent using the specified format, culture-specific format information, and style. The format of the string representation must match the specified format exactly or an exception is thrown.

  • s A string containing a date and time to convert.
  • format A format specifier that defines the required format of . For more information, see the Remarks section.
  • provider An object that supplies culture-specific formatting information about .
  • style A bitwise combination of the enumeration values that provides additional information about , about style elements that may be present in , or about the conversion from to a value. A typical value to specify is .
  • Returns An object that is equivalent to the date and time contained in , as specified by , , and .

public static DateTime ParseExact( string s, string[] formats, IFormatProvider provider, DateTimeStyles style )

Converts the specified string representation of a date and time to its equivalent using the specified array of formats, culture-specific format information, and style. The format of the string representation must match at least one of the specified formats exactly or an exception is thrown.

  • s A string that contains a date and time to convert.
  • formats An array of allowable formats of . For more information, see the Remarks section.
  • provider An object that supplies culture-specific format information about .
  • style A bitwise combination of enumeration values that indicates the permitted format of . A typical value to specify is .
  • Returns An object that is equivalent to the date and time contained in , as specified by , , and .

public int Second { get; }

Gets the seconds component of the date represented by this instance.

  • Returns The seconds component, expressed as a value between 0 and 59.

public static DateTime SpecifyKind( DateTime value, DateTimeKind kind )

Creates a new object that has the same number of ticks as the specified , but is designated as either local time, Coordinated Universal Time (UTC), or neither, as indicated by the specified value.

  • value A date and time.
  • kind One of the enumeration values that indicates whether the new object represents local time, UTC, or neither.
  • Returns A new object that has the same number of ticks as the object represented by the parameter and the value specified by the parameter.

public TimeSpan Subtract( DateTime value )

Returns a new that subtracts the specified date and time from the value of this instance.

  • value The date and time value to subtract.
  • Returns A time interval that is equal to the date and time represented by this instance minus the date and time represented by .

public DateTime Subtract( TimeSpan value )

Returns a new that subtracts the specified duration from the value of this instance.

  • value The time interval to subtract.
  • Returns An object that is equal to the date and time represented by this instance minus the time interval represented by .

public long Ticks { get; }

Gets the number of ticks that represent the date and time of this instance.

  • Returns The number of ticks that represent the date and time of this instance. The value is between and .

public TimeSpan TimeOfDay { get; }

Gets the time of day for this instance.

  • Returns A time interval that represents the fraction of the day that has elapsed since midnight.

public static DateTime Today { get; }

Gets the current date.

  • Returns An object that is set to today's date, with the time component set to 00:00:00.

public string ToString( IFormatProvider provider )

Converts the value of the current object to its equivalent string representation using the specified culture-specific format information.

  • provider An object that supplies culture-specific formatting information.
  • Returns A string representation of value of the current object as specified by .

public string ToString( string format )

Converts the value of the current object to its equivalent string representation using the specified format and the formatting conventions of the current culture.

  • format A standard or custom date and time format string.
  • Returns A string representation of value of the current object as specified by .

public string ToString( string format, IFormatProvider provider )

Converts the value of the current object to its equivalent string representation using the specified format and culture-specific format information.

  • format A standard or custom date and time format string.
  • provider An object that supplies culture-specific formatting information.
  • Returns A string representation of value of the current object as specified by and .

public static bool TryParse( string s, ref DateTime result )

Converts the specified string representation of a date and time to its equivalent and returns a value that indicates whether the conversion succeeded.

  • s A string containing a date and time to convert.
  • result When this method returns, contains the value equivalent to the date and time contained in , if the conversion succeeded, or if the conversion failed. The conversion fails if the parameter is , is an empty string (""), or does not contain a valid string representation of a date and time. This parameter is passed uninitialized.
  • Returns if the parameter was converted successfully; otherwise, .

public static bool TryParse( string s, IFormatProvider provider, DateTimeStyles styles, ref DateTime result )

Converts the specified string representation of a date and time to its equivalent using the specified culture-specific format information and formatting style, and returns a value that indicates whether the conversion succeeded.

  • s A string containing a date and time to convert.
  • provider An object that supplies culture-specific formatting information about .
  • styles A bitwise combination of enumeration values that defines how to interpret the parsed date in relation to the current time zone or the current date. A typical value to specify is .
  • result When this method returns, contains the value equivalent to the date and time contained in , if the conversion succeeded, or if the conversion failed. The conversion fails if the parameter is , is an empty string (""), or does not contain a valid string representation of a date and time. This parameter is passed uninitialized.
  • Returns if the parameter was converted successfully; otherwise, .

public static bool TryParseExact( string s, string format, IFormatProvider provider, DateTimeStyles style, ref DateTime result )

Converts the specified string representation of a date and time to its equivalent using the specified format, culture-specific format information, and style. The format of the string representation must match the specified format exactly. The method returns a value that indicates whether the conversion succeeded.

  • s A string containing a date and time to convert.
  • format The required format of .
  • provider An object that supplies culture-specific formatting information about .
  • style A bitwise combination of one or more enumeration values that indicate the permitted format of .
  • result When this method returns, contains the value equivalent to the date and time contained in , if the conversion succeeded, or if the conversion failed. The conversion fails if either the or parameter is , is an empty string, or does not contain a date and time that correspond to the pattern specified in . This parameter is passed uninitialized.
  • Returns if was converted successfully; otherwise, .

public static bool TryParseExact( string s, string[] formats, IFormatProvider provider, DateTimeStyles style, ref DateTime result )

Converts the specified string representation of a date and time to its equivalent using the specified array of formats, culture-specific format information, and style. The format of the string representation must match at least one of the specified formats exactly. The method returns a value that indicates whether the conversion succeeded.

  • s A string that contains a date and time to convert.
  • formats An array of allowable formats of .
  • provider An object that supplies culture-specific format information about .
  • style A bitwise combination of enumeration values that indicates the permitted format of . A typical value to specify is .
  • result When this method returns, contains the value equivalent to the date and time contained in , if the conversion succeeded, or if the conversion failed. The conversion fails if or is , or an element of is an empty string, or the format of is not exactly as specified by at least one of the format patterns in . This parameter is passed uninitialized.
  • Returns if the parameter was converted successfully; otherwise, .

public static DateTime UnixEpoch

No summary.

public static DateTime UtcNow { get; }

Gets a object that is set to the current date and time on this computer, expressed as the Coordinated Universal Time (UTC).

  • Returns An object whose value is the current UTC date and time.

public int Year { get; }

Gets the year component of the date represented by this instance.

  • Returns The year, between 1 and 9999.

public double ToOADate( )

😔 No documentation found.

public DateTime( DateOnly date, TimeOnly time )

😔 No documentation found.

public DateTime( DateOnly date, TimeOnly time, DateTimeKind kind )

😔 No documentation found.

public static DateTime ParseExact( ReadOnlySpan<char> s, string[] formats, IFormatProvider provider, DateTimeStyles style = None )

😔 No documentation found.

public static DateTime ParseExact( ReadOnlySpan<char> s, ReadOnlySpan<char> format, IFormatProvider provider, DateTimeStyles style = None )

😔 No documentation found.

public static DateTime Parse( ReadOnlySpan<char> s, IFormatProvider provider = null, DateTimeStyles styles = None )

😔 No documentation found.

public int Nanosecond { get; }

😔 No documentation found.

public int Microsecond { get; }

😔 No documentation found.

public int GetHashCode( )

😔 No documentation found.

public long ToBinary( )

😔 No documentation found.

public bool IsDaylightSavingTime( )

😔 No documentation found.

public DateTime( int year, int month, int day, int hour, int minute, int second, int millisecond, int microsecond )

😔 No documentation found.

public DateTime( int year, int month, int day, int hour, int minute, int second, int millisecond, int microsecond, DateTimeKind kind )

😔 No documentation found.

public DateTime( int year, int month, int day, int hour, int minute, int second, int millisecond, int microsecond, Calendar calendar )

😔 No documentation found.

public DateTime( int year, int month, int day, int hour, int minute, int second, int millisecond, int microsecond, Calendar calendar, DateTimeKind kind )

😔 No documentation found.

public DateTime AddMicroseconds( double value )

😔 No documentation found.

public long ToFileTime( )

😔 No documentation found.

public string ToLongDateString( )

😔 No documentation found.

public Type GetType( )

😔 No documentation found.

public static bool TryParseExact( ReadOnlySpan<char> s, ReadOnlySpan<char> format, IFormatProvider provider, DateTimeStyles style, ref DateTime result )

😔 No documentation found.

public static bool TryParse( ReadOnlySpan<char> s, IFormatProvider provider, DateTimeStyles styles, ref DateTime result )

😔 No documentation found.

public static bool TryParse( ReadOnlySpan<char> s, ref DateTime result )

😔 No documentation found.

public DateTime ToUniversalTime( )

😔 No documentation found.

public bool TryFormat( Span<byte> utf8Destination, ref int bytesWritten, ReadOnlySpan<char> format = null, IFormatProvider provider = null )

😔 No documentation found.

public bool TryFormat( Span<char> destination, ref int charsWritten, ReadOnlySpan<char> format = null, IFormatProvider provider = null )

😔 No documentation found.

public string ToString( )

😔 No documentation found.

public string ToShortTimeString( )

😔 No documentation found.

public string ToShortDateString( )

😔 No documentation found.

public void Deconstruct( ref DateOnly date, ref TimeOnly time )

😔 No documentation found.

public void Deconstruct( ref int year, ref int month, ref int day )

😔 No documentation found.

public string[] GetDateTimeFormats( )

😔 No documentation found.

public string ToLongTimeString( )

😔 No documentation found.

public DateTime ToLocalTime( )

😔 No documentation found.

public long ToFileTimeUtc( )

😔 No documentation found.

public TypeCode GetTypeCode( )

😔 No documentation found.

public static bool TryParse( string s, IFormatProvider provider, ref DateTime result )

😔 No documentation found.

public static DateTime Parse( ReadOnlySpan<char> s, IFormatProvider provider )

😔 No documentation found.

public static bool TryParseExact( ReadOnlySpan<char> s, string[] formats, IFormatProvider provider, DateTimeStyles style, ref DateTime result )

😔 No documentation found.

public static bool TryParse( ReadOnlySpan<char> s, IFormatProvider provider, ref DateTime result )

😔 No documentation found.