9 lines
159 B
TypeScript
9 lines
159 B
TypeScript
|
/**
|
||
|
* Gets the current date as YYYY-MM-DD.
|
||
|
*
|
||
|
* @returns the date
|
||
|
*/
|
||
|
export function getFormattedDate() {
|
||
|
return new Date().toISOString().slice(0, 10);
|
||
|
}
|