skip to Main Content

Javascript – Date Milliseconds same for two dates

I have a date string of format 'dd-mm-yyyy' which I want to convert to Milliseconds. let split_date = '31-01-2024'.split('-'); let d = new Date(parseInt(split_date[2]), parseInt(split_date[1]), parseInt(split_date[0]), 0, 0, 0, 0).getTime(); console.log(d); let split_date2 = '02-02-2024'.split('-'); let d2 = new Date(parseInt(split_date2[2]),…

VIEW QUESTION

Javascript – Understanding UTC time in js

Backend give me data of gantt diagramm start and end points in format: "horizont_start": "2024-05-01T00:00:00Z", "horizont_end": "2025-01-26T00:00:00Z", Next i give through props to another component Date format of this points like this: <NewGanttChart start={ new Date( gantt?.horizont_start || new Date(…

VIEW QUESTION
Back To Top
Search