//#region src/date/parse.d.ts /** * Parses a date string according to the given format string. * * Supported format tokens: * - YYYY: 4-digit year * - MM: 2-digit month (01-12) * - DD: 2-digit day (01-31) * - HH: 2-digit hour (00-23) * - mm: 2-digit minute (00-59) * - ss: 2-digit second (00-59) * - SSS: 3-digit millisecond (000-999) * * @param dateStr - The date string to parse * @param formatStr - The format string (default: 'YYYY-MM-DD HH:mm:ss') * @returns The parsed Date object, or null if parsing fails * * @example * parse('2024-01-15 14:30:45') // => Date object * parse('2024/01/15', 'YYYY/MM/DD') // => Date object * parse('15-01-2024', 'DD-MM-YYYY') // => Date object */ declare function parse(dateStr: string, formatStr?: string): Date | null; //#endregion export { parse }; //# sourceMappingURL=parse.d.cts.map