DateTime.fromISOString

DateTime fromISOString(S)(scope const S isoString) if (isSomeString!S) @safe pure

Creates a DateTime from a string with the format YYYYMMDDTHHMMSS. Whitespace is stripped from the given string.

Parameters

isoStringA string formatted in the ISO format for dates and times.

Throws

DateTimeException if the given string is

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