DateTime.fromISOExtString

DateTime fromISOExtString(S)(scope const S isoExtString) if (isSomeString!(S)) @safe pure

Creates a DateTime from a string with the format YYYY-MM-DDTHH:MM:SS. Whitespace is stripped from the given string.

Parameters

isoExtStringA string formatted in the ISO Extended format for dates and times.

Throws

DateTimeException if the given string is

not in the ISO Extended format or if the resulting DateTime would not be valid.