7 lines
180 B
TypeScript
7 lines
180 B
TypeScript
/**
|
|
* Returns a date as a string value in ISO format.
|
|
* same format as `new Date().toISOString()`
|
|
*/
|
|
export type DateISO<T extends string = string> = T
|
|
|
|
new Date().toISOString() |