This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fromDate = new Date("2023-08-05T00:00:00Z"); | |
const toDate = new Date("2023-10-31T00:00:00Z"); | |
function incrementDay(date) { | |
const year = date.getFullYear(); | |
const month = date.getMonth(); | |
const day = date.getDate() + 1; | |
const newDate = new Date(Date.UTC(year, month, day)); | |
return newDate; | |
} |
NewerOlder