Date.fromISOString

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

Creates a Date from a string with the format YYYYMMDD. Whitespace is stripped from the given string.

Parameters

isoStringA string formatted in the ISO format for dates.

Throws

DateTimeException if the given string is

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