saheb11 / datejs

Automatically exported from code.google.com/p/datejs
Other
0 stars 0 forks source link

Parsing dates with no separators (e.g., 'yyyyMMdd') yields incorrect results. #110

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Date.parse ('20100913', 'yyyyMMdd')

What is the expected output? What do you see instead?

Expected to see: Mon Sep 13 2010 00:00:00 GMT-0500 (CDT)
Actually saw:    Fri Oct 20 913 00:00:00 GMT-0500 (CDT)

What version of the product are you using? On what operating system?

 1.0 Alpha-1 on Ubuntu Linux.

Please provide any additional information below.

Original issue reported on code.google.com by fluoro@gmail.com on 18 Sep 2010 at 6:29

GoogleCodeExporter commented 8 years ago
.parse only accepts one argument. 

Please use .parseExact

http://code.google.com/p/datejs/wiki/APIDocumentation#parseExact

Original comment by geoff%co...@gtempaccount.com on 19 Sep 2010 at 5:29