Dmitriy Pleshevskiy
ced8cc8e4d
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
7 lines
166 B
TypeScript
7 lines
166 B
TypeScript
export function renderDate(date: Date): string {
|
|
return date.toLocaleDateString(undefined, {
|
|
year: "numeric",
|
|
month: "2-digit",
|
|
day: "2-digit",
|
|
});
|
|
}
|