pleshevski.ru/render.ts
Dmitriy Pleshevskiy ced8cc8e4d
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
works: add dates and some cosmetic changes
2023-06-20 01:46:23 +03:00

7 lines
166 B
TypeScript

export function renderDate(date: Date): string {
return date.toLocaleDateString(undefined, {
year: "numeric",
month: "2-digit",
day: "2-digit",
});
}