Javascript – Offset value and timezone is different in angular
I am working with angular project and need to send correct date and time to the server. First, I have taken the offset by using below code let offset=new Date().getTimezoneOffset(); let datestring="2024-12-21T00:00:00" let newdate=new Date(datestring); The 'newdate' display in the…