noteshare.space/server/util.ts

6 lines
151 B
TypeScript
Raw Normal View History

2022-06-29 15:17:38 +03:00
export function addDays(date: Date, days: number): Date {
var result = new Date(date);
result.setDate(result.getDate() + days);
return result;
}