PHP Date() Functions |
This is function to formats a timestamp to a more readable date and time. Syntax : date(format, timestamp) the characters can be used : d : Reprersent the day of the month (01 to 31) m : represents a month (01 to 12) Y : represents a year (in four digits) ex: "; echo date("Y.m.d") . " "; echo date("Y-m-d") ?>' and output of the code above could be something like this : 2009/05/11 2009.05.11 2009-05-11 |