Click or drag to resize

EAPConvertParseDateTime Method

Overload List
  NameDescription
Public methodStatic memberParseDateTime(String, String, CultureInfo)
Converts the specified string representation of a date and time to its DateTime equivalent using the specified culture-specific format information. Note that if time is provide without a date specification, then the date will be defaulted to 1899-12-30 (the COM time-only date). Note also that internal whitespace is ignored.

Internally both DateTime.TryParseExact() and DateTime.TryParse() are used to provide wider conversion coverage. This is particularly important for time-only values.

Public methodStatic memberParseDateTime(String, String, CultureInfo, DateTime)
Converts the specified string representation of a date and time to its DateTime equivalent using the specified culture-specific format information. Note that if time is provide without a date specification, then the date will be defaulted to 1899-12-30 (the COM time-only date). Note also that internal whitespace is ignored.

Internally both DateTime.TryParseExact() and DateTime.TryParse() are used to provide wider conversion coverage. This is particularly important for time-only values.

Top
See Also