struct DateTimeStyles

in global :: System . Globalization

Defines the formatting options that customize string parsing for some date and time parsing methods.


public static DateTimeStyles AdjustToUniversal

Date and time are returned as a Coordinated Universal Time (UTC). If the input string denotes a local time, through a time zone specifier or , the date and time are converted from the local time to UTC. If the input string denotes a UTC time, through a time zone specifier or , no conversion occurs. If the input string does not denote a local or UTC time, no conversion occurs and the resulting property is . This value cannot be used with .

public static DateTimeStyles AllowInnerWhite

Extra white-space characters in the middle of the string must be ignored during parsing, except if they occur in the format patterns.

public static DateTimeStyles AllowLeadingWhite

Leading white-space characters must be ignored during parsing, except if they occur in the format patterns.

public static DateTimeStyles AllowTrailingWhite

Trailing white-space characters must be ignored during parsing, except if they occur in the format patterns.

public static DateTimeStyles AllowWhiteSpaces

Extra white-space characters anywhere in the string must be ignored during parsing, except if they occur in the format patterns. This value is a combination of the , , and values.

public static DateTimeStyles AssumeLocal

If no time zone is specified in the parsed string, the string is assumed to denote a local time. This value cannot be used with or .

public static DateTimeStyles AssumeUniversal

If no time zone is specified in the parsed string, the string is assumed to denote a UTC. This value cannot be used with or .

public static DateTimeStyles NoCurrentDateDefault

If the parsed string contains only the time and not the date, the parsing methods assume the Gregorian date with year = 1, month = 1, and day = 1. If this value is not used, the current date is assumed.

public static DateTimeStyles None

Default formatting options must be used. This value represents the default style for the , , and methods.

public static DateTimeStyles RoundtripKind

The field of a date is preserved when a object is converted to a string using the "o" or "r" standard format specifier, and the string is then converted back to a object.

public int value__

😔 No documentation found.

public TypeCode GetTypeCode( )

😔 No documentation found.

public string ToString( string format, IFormatProvider provider )

😔 No documentation found.

public string ToString( IFormatProvider provider )

😔 No documentation found.

public string ToString( string format )

😔 No documentation found.

public string ToString( )

😔 No documentation found.

public int CompareTo( object target )

😔 No documentation found.

public int GetHashCode( )

😔 No documentation found.

public bool Equals( object obj )

😔 No documentation found.

public Type GetType( )

😔 No documentation found.

public bool HasFlag( Enum flag )

😔 No documentation found.