1let startDate: string = "2021-04-01";
2let date1: Date = new Date();
3let date2: Date = new Date(startDate);
4let timeInMilisec: number = date1.getTime() - date2.getTime();
5let daysBetweenDates: number = Math.ceil(timeInMilisec / (1000 * 60 * 60 * 24));