I'm using DateJS to parse user-inputted dates, and getting some strange results.
Date.parse("15 Jan 2010")
returnsFri Jan 15 00:00:00 EST 2010
(right)Date.parse("15-Apr-2010")
returnsThu Apr 15 00:00:00 EDT 2010
(right)Date.parse("15 Apr 2010")
returnsThu Apr 1 00:00:00 EDT 2010
(wrong)
As far as I can tell, the d MMM yyyy
input format works fine for every month except April and August; in those two cases, it returns the first of the month no matter what day is entered. Is this a bug, or is there a logical explanation I'm missing?