JavaScript Date object showing incorrect date when set to midnight in UTC
I'm encountering an issue with the JavaScript Date object where it's showing an incorrect date when I set it to midnight in UTC. Here's my code: function updateDates(startDate) { var utcStartDate = startDate + 'T00:00:00Z'; var currentDate = new Date(utcStartDate);…