I wrote a class myself, I think you will find the ok version in gadmdatecommand.php at http://sourceforge.net/projects/phpdbedittk
Regarding the comments here, just explode with '/' and replace the number, it's not that simple. If you offer to enter dates in the input field, you can get - depending on the location of the user and application
1/7/2010 1.7.2010 1-7-2010 July 15 1 Jul 2010 1/6/8
and many other options. I solved this problem (at least for me successfully) by creating a date format, each of which has a) a regular expression that matches the format b) an array display unit that matches the regular expression brackets in the date shapes (day, month, minute, am / pm) c) output format for date ()
NTN
source share