ag-grid-community
Version:
Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
13 lines (12 loc) • 591 B
TypeScript
/**
* Serialises a Date to a string of format `yyyy-MM-dd HH:mm:ss`.
* An alternative separator can be provided to be used instead of hyphens.
* @param date The date to serialise
* @param includeTime Whether to include the time in the serialised string
* @param separator The separator to use between date parts
*/
export declare function serialiseDate(date: Date, includeTime?: boolean, separator?: string): string | null;
/**
* Parses a date and time from a string in the format `yyyy-MM-dd HH:mm:ss`
*/
export declare function parseDateTimeFromString(value: string): Date | null;