public enum DateTimeStyles
Object
ValueType
Enum
DateTimeStyles
mscorlib
BCL
Defines the formatting options that customize how the System.DateTime.Parse(System.String) and System.DateTime.ParseExact(System.String,System.String,System.IFormatProvider) methods parse a string.
[Note: See the String class for the list of white space characters.Only the System.Globalization.DateTimeStyles.NoCurrentDateDefault option affects the System.DateTime.Parse(System.String) method. System.DateTime.Parse(System.String) always ignores leading, inner, and trailing white spaces.
]
FlagsAttribute
System.Globalization Namespace
DateTimeStyles Fields
DateTimeStyles.AdjustToUniversal Field
DateTimeStyles.AllowInnerWhite Field
DateTimeStyles.AllowLeadingWhite Field
DateTimeStyles.AllowTrailingWhite Field
DateTimeStyles.AllowWhiteSpaces Field
DateTimeStyles.NoCurrentDateDefault Field
DateTimeStyles.None Field
DateTimeStyles.value__ Field
AdjustToUniversal = 0x10;
Specifies that the date and time must be converted to universal time coordinate time or Greenwich mean time (GMT)
System.Globalization.DateTimeStyles Enum, System.Globalization Namespace
AllowInnerWhite = 0x4;
Specifies that extra white space characters not specified in the DateTimeFormatInfo format patterns are allowed.
System.Globalization.DateTimeStyles Enum, System.Globalization Namespace
AllowLeadingWhite = 0x1;
Specifies that leading white space characters are allowed.
System.Globalization.DateTimeStyles Enum, System.Globalization Namespace
AllowTrailingWhite = 0x2;
Specifies that trailing white space characters are allowed.
System.Globalization.DateTimeStyles Enum, System.Globalization Namespace
AllowWhiteSpaces = AllowLeadingWhite | AllowTrailingWhite | AllowInnerWhite;
Specifies that white space characters anywhere in the string are allowed.
System.Globalization.DateTimeStyles Enum, System.Globalization Namespace
NoCurrentDateDefault = 0x8;
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 System.DateTime.Parse(System.String) or System.DateTime.ParseExact(System.String,System.String,System.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.
System.Globalization.DateTimeStyles Enum, System.Globalization Namespace
None = 0x0;
Specifies that the default formatting options are to be used.
System.Globalization.DateTimeStyles Enum, System.Globalization Namespace
value__;
System.Globalization.DateTimeStyles Enum, System.Globalization Namespace