[TYPO3-project-4-3] ExtJS Date-picker for TCEFORMS
Jigal van Hemert
jigal at xs4all.nl
Tue Jun 30 22:08:01 CEST 2009
Martin Kutschker wrote:
> I expect a date field to support common date formats.
This should be possible with PHP's strtotime (via AJAX?)
It's pretty flexible with recognizing date (time) formats:
mm/dd/yyyy - 02/01/2003 - strtotime() returns : 1st February 2003
mm/dd/yy - 02/01/03 - strtotime() returns : 1st February 2003
yyyy/mm/dd - 2003/02/01 - strtotime() returns : 1st February 2003
dd-mm-yyyy - 01-02-2003 - strtotime() returns : 1st February 2003
yy-mm-dd - 03-02-01 - strtotime() returns : 1st February 2003
yyyy-mm-dd - 2003-02-01 - strtotime() returns : 1st February 2003
It seems to be available as a Javascript function too:
http://phpjs.org/functions/strtotime:554
Regards,
--
Jigal van Hemert.
More information about the TYPO3-project-4-3
mailing list