@sebgroup/frontend-tools
Version:
A set of frontend tools
9 lines (8 loc) • 420 B
TypeScript
/**
* Convert date object to local String
* @param {Date} date The date object
* @param {Array<string>} locales Optional array of locales (country codes) to use.
* Locale will fallback to default system language if none provided.
* @returns return new date string in the format `June 13, 2019` (for english locale)
*/
export declare function toLocalDateString(date: Date, locales?: Array<string>): string;