/** * Turns a date string into JS Date * @param jsonDate json date string */ export declare function parseJsonDate(jsonDate: string): Date; /** * Get the day of the year for a given date * @param date date */ export declare function getDayOfYear(date: Date): number; /** * Get the Date that is number of days from now * @param day number of days */ export declare function getDateFromDay(day: any): Date; /** * Get the Date that is number of days from now or from min date * @param day number of days * @param minDate minimum date */ export declare function getClosestDateFromDay(day: number, minDate?: Date): Date; /** * Turns a date string into JS date * @param dateString date string */ export declare function getDateFromString(dateString: string): Date; /** * Get the number of months / years from the dateSince till today * @param dateSince starting date */ export declare function getDateYearMonthSince(dateSince: Date | string): { years: number; months: number; }; /** * Get the number of months from the dateSince until today * @param dateSince starting date */ export declare function getNumberOfMonths(dateSince: Date | string, utc?: boolean): number; /** * Get the number of months within a year until today * @param dateSince starting date */ export declare function computeMonthInYearDuration(dateSince: Date | string, utc?: boolean): number; /** * Trim the time portion (reset to 00:00:00) for a given date * @param date date * @param sourceIsUtc - if true, get the local time equivalent of the date input first before extracting the date portion */ export declare function getDateWithoutTime(date: Date, sourceIsUtc?: boolean): Date; /** * Combine Datepart and Timepart from 2 different dates * @param datePart * @param timePart */ export declare function combineDateTime(datePart: Date, timePart: Date): Date; /** * Convert date time to JSON string format * @param date */ export declare function convertDateToJSONString(date: Date): string; export declare function getUtcEquivalentOfLocalDateTime(localDateTime: Date | null): Date | null; export declare function getLocalDateTimeEquivalentOfUTC(utcDateTime: Date | null): Date | null; export declare function getLocalDateTimeFromUTCString(utcDateString: string): Date | null; export declare function getAgeByDate(date: Date): number; /** * Convert YearsJob to Year and Months string format * 4.5 YearsJob (db) to 4 years and 6 months (UI) */ export declare function convertDecimalToYearMonthFormat(yearsAndMonths: any): Date; export declare function formatUtcDate(date: string | Date, formatString: string): string; export declare function getDateSinceYearsMonths(years: number, months: number, dateSince?: Date): Date;