@churchapps/apphelper
Version:
Library of helper functions for React and NextJS ChurchApps
18 lines • 757 B
TypeScript
export declare class DateHelper {
static toDate(input: any): Date;
static toDateTime(input: any): Date;
static addDays(date: Date, days: number): Date;
static prettyDate(date: Date): string;
static prettyDateTime(date: Date): string;
static prettyTime(date: Date): string;
static getLastSunday(): Date;
static getWeekSunday(year: number, week: number): Date;
static formatHtml5Date(date: Date): string;
static formatHtml5Time(time: Date): string;
static formatHtml5DateTime(date: Date): string;
static getDisplayDuration(d: Date): string;
static getShortDate(d: Date): string;
static convertDatePickerFormat(d: Date): Date;
private static formatDateTime;
}
//# sourceMappingURL=DateHelper.d.ts.map