From 41f7d3c5c7e3efb9acf2c038f91e17b292b0dba7 Mon Sep 17 00:00:00 2001 From: Philip Olson Date: Mon, 20 Aug 2012 19:06:11 +0000 Subject: [PATCH] Added MySQL datetime format example. Patch by Ben Kuhl. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@327190 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/datetime/functions/date.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/reference/datetime/functions/date.xml b/reference/datetime/functions/date.xml index 001deafc89..9952657120 100644 --- a/reference/datetime/functions/date.xml +++ b/reference/datetime/functions/date.xml @@ -460,6 +460,7 @@ $today = date('\i\t \i\s \t\h\e jS \d\a\y.'); // it is the 10th day. $today = date("D M j G:i:s T Y"); // Sat Mar 10 17:16:18 MST 2001 $today = date('H:m:s \m \i\s\ \m\o\n\t\h'); // 17:03:18 m is month $today = date("H:i:s"); // 17:16:18 +$today = date("Y-m-d H:i:s"); // 2001-03-10 17:16:18 (the MySQL DATETIME format) ?> ]]>