Date.fromISOExtString

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

Creates a Date from a string with the format YYYY-MM-DD. Whitespace is stripped from the given string.

Parameters

isoExtStringA string formatted in the ISO Extended format for dates.

Throws

DateTimeException if the given string is

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