UNPKG

dareway-rui

Version:

24 lines (13 loc) 683 B
declare namespace DateUtil { function getDBDate(): Date; function getDBTime(): Date; function formatDate(date: Date, format: string): string; function checkDate(str: string, formatString: string): boolean; function getMonthsBetweenTwoDate(startDate: Date, endDate: Date): number; function compareDate(date1: Date, date2: Date): number; function stringToDate(dateStr: string, format: string): Date; function getDayDifferenceBetweenTwoDate(beginDate: Date, endDate: Date): number; function addMonths(date: Date, months: number): Date; function addDays(date: Date, days: number): Date; } export default DateUtil;