I will give you the PHP's data and time function for try :
Code:
date and time function date ()
1, Year - Month - Day
echo date ('Y-m-j');
2007-02-6
echo date ('y-n-j');
07-2-6
Uppercase Y, said four-digit years, while the lowercase y expressed in the double digits;
Lower case m that the number of the month (with leading), while the lowercase n indicates the month without leading figures.
echo date ('Y-M-j');
2007-Feb-6
echo date ('Y-m-d');
2007-02-06
Uppercase M, said the three short months ......
Bookmarks