@technobuddha/library
Version:
A large library of useful functions
11 lines (10 loc) • 399 B
TypeScript
/**
* Parse a string into a Date object
* @remarks this is a little more generous about what formats it will take for a date, and if it can't match the input to one of it's supported formats it falls
* back to new Date(text)
* @param input - The string containing a date
* @returns new Date object
* @group Time
* @category Parsing
*/
export declare function parseDate(input: string): Date;