UNPKG

@leafygreen-ui/date-utils

Version:
17 lines 466 B
interface GetUTCDateStringOptions { locale?: string; } /** * Returns a localized date string for the UTC representation of a date, regardless of system time zone * * e.g. * ``` * getUTCDateString( * Date("2023-12-25T01:00:00Z"), * { locale: 'en-US' } * ) // "Monday, December 25, 2023" * ``` */ export declare const getUTCDateString: (date: Date, options?: GetUTCDateStringOptions) => string; export {}; //# sourceMappingURL=getUTCDateString.d.ts.map