dotnet-format
Version:
📝 Pretty accurate port of awesome .NET formatting operations for JS environment
12 lines (11 loc) • 353 B
TypeScript
declare type NotBigIntOrSymbol<T> = T extends BigInt | Symbol ? never : T;
/**
* Formats the date with the given format.
*
* @param date Date.
* @param format Format string.
*
* @returns Formatted date.
*/
export declare function formatDate<T>(date: NotBigIntOrSymbol<T>, format?: string, culture?: string): string | never;
export {};