4 lines
123 B
TypeScript
4 lines
123 B
TypeScript
|
export function addDaysToDate(date: Date, days: number) {
|
||
|
return new Date(date.getTime() + days * 24 * 60 * 60 * 1000)
|
||
|
}
|