Date.fromSimpleString

Date fromSimpleString(S)(scope const S simpleString) if (isSomeString!(S)) @safe pure

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

Parameters

simpleStringA string formatted in the way that toSimpleString formats dates.

Throws

DateTimeException if the given string is

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