![Firefox logo](https://assets-prod.sumo.prod.webservices.mozgcp.net/media/uploads/products/2020-04-14-08-36-13-8dda6f.png)
new Date() issue
when i am passing Date in new Date() function browser adding extra -
new Date('26-Oct-2019 02:45 PM') Date Mon Oct 26 -2019 14:45:00 GMT+0553 (India Standard Time)
please check the below attachment
when i am passing Date in new Date() function browser adding extra -
new Date('26-Oct-2019 02:45 PM')
Date Mon Oct 26 -2019 14:45:00 GMT+0553 (India Standard Time)
please check the below attachment
Solución elegida
This only happens if you add the dashes in the date.
- new Date('26 Oct 2019 02:45 PM');
Todas las respuestas (1)
Solución elegida
This only happens if you add the dashes in the date.
- new Date('26 Oct 2019 02:45 PM');