var date1 = new Date(2023, 1, 1);
var date2 = new Date(2023, 2, 1);
var diff = Math.abs(date1.getTime() - date2.getTime());
var diffDays = Math.ceil(diff / (1000 * 3600 * 24));
console.log("Diff in Days: " + diffDays);
var date1 = new Date(2023, 1, 1);
var date2 = new Date(2023, 2, 1);
var diff = Math.abs(date1.getTime() - date2.getTime());
var diffDays = Math.ceil(diff / (1000 * 3600 * 24));
console.log("Diff in Days: " + diffDays);