UNPKG

fitr

Version:
9 lines (8 loc) 258 B
/** * Format a date for display */ export declare function formatDate(date: Date | string): string; /** * Get date for a given period back from today */ export declare function getDateForPeriod(period: 'day' | 'week' | 'month' | 'year' | 'ytd'): string;