skip to Main Content

Jquery – input date ranges in both array ranges

I have been working with this code: var rangesInputRange1 = [ { startDate: parseDate("15/04/2024"), endDate: parseDate("01/05/2024") }, { startDate: parseDate("01/06/2024"), endDate: parseDate("30/06/2024") } ]; var rangesInputRange2 = [ { startDate: parseDate("01/04/2024"), endDate: parseDate("14/04/2024") }, { startDate: parseDate("01/07/2024"), endDate: parseDate("31/08/2024") }…

VIEW QUESTION

javascript converting datestring to epoch returns three digits too much

I am converting a string to epoch like this: arrival = $('#aircraft_arrival_time').val(); console.log(arrival); //2023-12-09T14:03 temp = arrival.split("T"); arrivalDatePart = temp[0]; arrivalDate = arrivalDatePart + "T00:00:00.000Z"; console.log(arrivalDate); //2023-12-09T00:00:00.000Z chartFrom = Date.parse(arrivalDate); //beginning of that day, UTC console.log(chartFrom); //1702080000000 var f =…

VIEW QUESTION
Back To Top
Search