Open Bug 1235045 Opened 6 years ago Updated 14 days ago

Date Formats Support


(Core :: JavaScript: Standard Library, defect)

44 Branch
Not set



Webcompat Priority revisit


(Reporter: dron.rathore, Unassigned)


(Blocks 1 open bug)


(Whiteboard: [webcompat])

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36

Steps to reproduce:

Currently the only format that Date constructor takes is : yyyy-mm-dd and all other are just "Invalid Date"

new Date("dd-mm-yyyy")
new Date("yyyy-dd-mm")
new Date("mm-dd-yyyy")

Actual results:

Above all throws "Invalid Date" error.

Expected results:

Well I tried the same in Chrome and they just worked! As there is no as such universal format that everyone "should" use in the WebApps they build, we should extend support of other Date formats too.
Component: Untriaged → General
OS: Unspecified → Mac OS X
Hardware: Unspecified → All
Component: General → JavaScript Engine
Product: Firefox → Core
Blocks: 1274354
Component: JavaScript Engine → JavaScript: Standard Library

Migrating Webcompat whiteboard priorities to project flags. See bug 1547409.

Webcompat Priority: --- → ?

See bug 1547409. Migrating whiteboard priority tags to program flags.

Webcompat Priority: ? → revisit
You need to log in before you can comment on or make changes to this bug.