@technobuddha/library
Version:
A large library of useful functions
12 lines (11 loc) • 391 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 text The string containing a date
* @returns new Date object
*/
export declare function parseDate(text: string): Date;
export default parseDate;