khmer-date-utils
Version:
This package is used to convert date to khmer date, date range, date utils
20 lines (19 loc) • 431 B
TypeScript
import { ETypeDate } from "./types";
export type IndexDay = 0 | 1;
/**
* @param type
* @param StartDay
* @returns
*/
export declare function GetDateRange(type: ETypeDate): {
dateType: ETypeDate;
startDate: Date;
endDate: Date;
};
/**
* Counts the number of months between two dates.
* @param startDate
* @param endDate
* @returns
*/
export declare function CountMonths(startDate: Date, endDate: Date): number;