tryParseDate

tryParseDate(source: text, format: text) 🡒 (boolean, date), pure function

Returns a (boolean,date) tuple. The first argument is the value to be parsed. The second argument is the date format. The returned Boolean flag is true if the value has been parsed. The returned date value is non-default only if the parsing succeeded.

See also