kupos-service-item-package
Version:
A reusable service item component
17 lines (16 loc) • 813 B
TypeScript
declare const DateService: {
changeDateFormat: (date: string, fromFormat?: string, toFormat?: string) => string;
getDayname: (day: number, type?: string) => string;
getMonthName: (month: number, type?: string) => string;
getDayNameFromDate: (date: string, format?: string, type?: string) => string;
getDateFromDate: (dateStr: string, format?: string) => string;
getMonthFromDate: (dateStr: string, format?: string) => string;
getMonthNameFromDate: (dateStr: string, format?: string, type?: string) => string;
getYearFromDate: (dateStr: string, format?: string) => string;
getServiceItemDate: (dateStr: string, format?: string) => string;
/**
* Format time string (HH:MM) to AM/PM format
*/
formatTime: (time: string) => string;
};
export default DateService;