UNPKG

@churchapps/helpers

Version:

Library of helper functions not specific to any one ChurchApps project or framework.

23 lines 968 B
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; 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