import { DateFormat } from "./types"; /** * Verifica che la stringa sia nel formato dd/mm/aaaa * * @param s */ export declare const isInItalianFormat: (s: string) => boolean; /** * Verifica che la stringa sia formatta secondo lo standard ISO 8601 * * E.g. * 2016-04-06 * 2016-04-06T10:10:09Z * 2003-05-11T15:30:00.45Z * 1997-07-16T19:20+01:00 * 1997-07-16T19:20:30+01:00 * 1997-07-16T19:20:30.45+01:00 * 1997-07-16T19:20-01:00 * 1997-07-16T19:20:30-01:00 * 1997-07-16T19:20:30.45-01:00 * * https://rgxdb.com/r/526K7G5W * * @param s */ export declare const isInISO8601Format: (s: string) => boolean; /** * Verifica che la stringa rappresenti una data * * @param s */ export declare const isDate: (s: string) => boolean; /** * * @param s */ export declare const toItalianFormat: (s: string) => string; /** * * @param s */ export declare const toISO8601Format: (s: string) => string; /** * * @param s * @param format */ export declare const reformatDate: (s: string, format: DateFormat) => string; /** * * @param d * @param format */ export declare const dateToString: (d: Date, format: DateFormat) => string; /** * Converte una stringa in un oggetto Date. * * @returns Oggetto Date se la stringa e' definita, null altrimenti. */ export declare const toDateObject: (s: string) => Date; export declare const isValidDateObject: (s: Date) => boolean; export declare const isInvalidDateObject: (d: Date) => boolean; export declare const addZero: (n: number) => string; export declare const isFutureDate: (s: string) => boolean; export declare const isPastDate: (s: string) => boolean; export declare const isToday: (s: string) => boolean; export declare const compareDate: (d1: Date, d2: Date) => 0 | 1 | -1;