@sildeswj/common-libraries
Version:
This is common libraries used for all refeed projects
26 lines • 1.39 kB
TypeScript
import dayjs from 'dayjs';
export declare const userLocale: string;
export declare const getStartDate: (date: Date, countryCode?: string) => string;
export declare const getEndDate: (date: Date, countryCode?: string) => string;
export declare const getYearMonth: (date: Date, countryCode?: string) => {
year: number;
month: number;
};
export declare const getStartAndEndDateFromYearAndMonth: (year: number, month: number, countryCode?: string) => {
startDate: string;
endDate: string;
};
export declare const getDayjsDate: (date: Date, countryCode?: string) => dayjs.Dayjs;
export declare const getToday: (countryCode?: string) => string;
export declare const getThisYear: (countryCode?: string) => number;
export declare const getThisMonth: (countryCode?: string) => number;
export declare const getTomorrow: (countryCode?: string) => string;
export declare const getTodayByCountry: (countryCode?: string) => dayjs.Dayjs;
export declare const getDateFormat: (locale: string, isTimeFormat?: boolean) => string;
export declare const parsePickupDateWithCountry: (pickupDate: string | Date | number, countryCode?: string) => Date;
export declare const getDateByTimezone: (date: Date, timezone?: string) => Date;
export declare const getYearMonthByTimezone: (date: Date, timezone?: string) => {
year: number;
month: number;
};
//# sourceMappingURL=dateFormat.d.ts.map