Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

new Date() issue

  • 1 reply
  • 1 has this problem
  • 6 views
  • Paskiausią atsakymą parašė cor-el

more options

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

Pridėtos ekrano nuotraukos

Chosen solution

This only happens if you add the dashes in the date.

  • new Date('26 Oct 2019 02:45 PM');
Skaityti atsakymą kartu su kontekstu 👍 0

All Replies (1)

more options

Chosen Solution

This only happens if you add the dashes in the date.

  • new Date('26 Oct 2019 02:45 PM');