UNPKG

@widergy/web-utils

Version:
25 lines (24 loc) 1.26 kB
export declare function formatDatePartialFormat(date: string): string; export declare function formatDateFullFormat(date: string): string; export declare function formatDatePartialFormatPreviousYear(period: string): string; export declare function formatDateToYYMMDDDD(date: string): string; export declare function getMonthNumber(period: string): number; export declare function getYearNumber(period: string): number; export declare function dateToString(date: any): string; export declare function howLongSince(since: any, until: any): string; export declare const getCurrentDate: (dateFormat: string) => any; export declare const beforeToday: (date: any) => any; interface DateUtils { formatDatePartialFormat: (date: string) => string; formatDateFullFormat: (date: string) => string; formatDatePartialFormatPreviousYear: (period: string) => string; formatDateToYYMMDDDD: (date: string) => string; getMonthNumber: (period: string) => number; getYearNumber: (period: string) => number; dateToString: (date: any) => string; howLongSince: (since: any, until: any) => string; getCurrentDate: (dateFormat: string) => any; beforeToday: (date: any) => any; } declare const DATE_UTILS: DateUtils; export default DATE_UTILS;