noteshare.space/server/util.ts
2022-06-29 14:17:38 +02:00

6 lines
151 B
TypeScript

export function addDays(date: Date, days: number): Date {
var result = new Date(date);
result.setDate(result.getDate() + days);
return result;
}