Files
md-blog/src/lib/dates.ts
T
klemek 767fb8cfc6
Deploy / Build (push) Has been cancelled
Deploy / Deploy to Stapler (push) Has been cancelled
Lint / ESLint (push) Has been cancelled
Lint / Oxlint (push) Has been cancelled
Lint / Type Check (push) Has been cancelled
ci: add Makefile and stricter eslint config
2026-05-02 00:08:13 +02:00

10 lines
232 B
TypeScript

export function simpleDateFormat(date: Date): string {
return (
date.getFullYear().toString() +
"-" +
(date.getMonth() + 1).toString().padStart(2, "0") +
"-" +
date.getDate().toString().padStart(2, "0")
);
}