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

Cuireadh an snáithe seo sa chartlann. Cuir ceist nua má tá cabhair uait.

new Date() issue

  • 1 freagra
  • 1 leis an bhfadhb seo
  • 8 views
  • Freagra is déanaí ó 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

Attached screenshots

Réiteach roghnaithe

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

  • new Date('26 Oct 2019 02:45 PM');
Read this answer in context 👍 0

All Replies (1)

more options

Réiteach Roghnaithe

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

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