Defines the formatting options that customize how the
DateTime.Parse(string)
and
DateTime.ParseExact(string, string, IFormatProvider) methods parse a string.
[
Edit]
[System.Flags] [System.Runtime.InteropServices.ComVisible(true)] public enum DateTimeStyles |
|
Remarks
Members
Member Name | Description |
---|
AdjustToUniversal | Specifies that the date and time must be converted to
universal time coordinate time or Greenwich mean time (GMT)
[Edit]
|
AllowInnerWhite | Specifies that extra white space characters not specified
in the System.Globalization.DateTimeFormatInfo format patterns are allowed.
[Edit]
|
AllowLeadingWhite | Specifies that leading white space characters are allowed.
[Edit]
|
AllowTrailingWhite | Specifies that trailing white space characters are allowed.
[Edit]
|
AllowWhiteSpaces | Specifies that white space characters anywhere in the
string are allowed.
[Edit]
|
AssumeLocal | Documentation for this section has not yet been entered.
[Edit]
|
AssumeUniversal | Documentation for this section has not yet been entered.
[Edit]
|
NoCurrentDateDefault | Specifies that there is no current date default. If a
string contains only the time and not the date, and this option is used with the
DateTime.Parse(string) or DateTime.ParseExact(string, string, IFormatProvider) methods, a Gregorian year 1, month 1, day
1 date is assumed. In all other cases the methods assume the current local system date.
[Edit]
|
None | Specifies that the default formatting options are to be used.
[Edit]
|
RoundtripKind | Documentation for this section has not yet been entered.
[Edit]
|
Requirements
Namespace: System.Globalization
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0