serina
Version:
Natural Language Parser for date and time in Javascript
5 lines (4 loc) • 337 B
TypeScript
export declare function getFutureYearIfDateIsInThePast(monthStr: string, dayStr: string): string;
export declare function getNextMonthIfDayIsInThePast(dayStr: string): number;
export declare function partialDateStringToDayMonthYear(date: string): Date;
export declare function partialDateStringToDateObj(matchingText: string): Date;