Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Add format parameter in Date::Parse() method #255

wants to merge 1 commit into


None yet
7 participants

brenard commented Jun 27, 2011


I added a format parameter to the method Date::Parse() to specify a uniq format to parse the date. What do you think about it ?



arian commented Jun 27, 2011

I think this is related to https://mootools.lighthouseapp.com/projects/24057/tickets/513

Probably I can pull this next week, if not someone else on the team does. Can't do it directly because we'll need to update our tests and docs too.


xrado commented Nov 14, 2011

+1 please add this

+1 please add this it is needed, if this where available it make it easy to fix a bug in the datepicker that causes the calendar to be shown in the incorrect month when using the format d-m-y e.g if a date of 01-06-2010 (01-june-2010) is in the datepicker text box the calendar will display 06-january-2010 this is due to Date.Parser this could easily be fixed if date.parser had a format param

luigi37 commented Feb 18, 2012

+1. Needed. The format of the dates is incorrect for that ones that can look as american (even if formatted as european).
Also a format parameter in date.parser would be more intuitive.

neilime commented Mar 26, 2012

+1 Date.parse with format parameter is strongly usefull for european dates

Why this commit has never been implemented ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment