@churchapps/helpers
Version:
Library of helper functions not specific to any one ChurchApps project or framework.
24 lines • 1.08 kB
TypeScript
export declare class DateHelper {
static toDate(input: any): Date;
static toDateTime(input: any): Date;
static convertToDate(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 getNextSunday(): Date;
static getWeekSunday(year: number, week: number): Date;
static formatHtml5Date(date: Date | string | null | undefined): string;
static toMysqlDateOnly(date: Date | string | null | undefined): string | null;
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;
static toMysqlDate(d: Date): string;
static subtractHoursFromNow(hour: number): Date;
static toUTCDate(d: Date): string;
}
//# sourceMappingURL=DateHelper.d.ts.map