echo date("Y-m-d");
echo date("Y/m/d"); echo date("M d, Y"); echo date("F d, Y"); echo date("D M d, Y"); echo date("l F d, Y"); echo date("l F d, Y, h:i:s"); echo date("l F d, Y, h:i A"); OUTPUT:2010-12-16 2010/12/16 Dec 16, 2010 December 16, 2010 Thu Dec 16, 2010 Thursday December 16, 2010 Thursday December 16, 2010, 02:51:38 Thursday December 16, 2010, 02:51 AM Reference: http://www.php-learn-it.com/php_date.html
No comments:
Post a Comment