4 lines
No EOL
174 B
TypeScript
4 lines
No EOL
174 B
TypeScript
export const tomorrow = (date: Date) => {
|
|
date.setDate(date.getDate() + 1)
|
|
return `${date.getFullYear()}-${`${date.getMonth() + 1}`.padStart(2, '0')}-${date.getDate()}`
|
|
} |