note 98950 added to function.microtime
| From: | leonardonobre at ibest dot com dot br | Date: | Sat, 17 Jul 2010 01:20:45 +0000 |
| Subject: | note 98950 added to function.microtime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-170935@lists.php.net to get a copy of this message | ||
Convert date type MySQL to Brazilian (i.e: 2010-07-23 to 23/07/2010);
$date_brazilian = date("Y-m-d",microtime($_REQUEST[data_inicial]));
The var $_REQUEST[data_inicial] = 23/07/2010 and convert to microtime (Unix TimeStamp) and the
function date convert to format "Y-m-d".
Léo
----
Server IP: 187.16.23.128
Probable Submitter: 189.110.160.107
----
Manual Page -- http://www.php.net/manual/en/function.microtime.php
Edit -- https://master.php.net/note/edit/98950
Del: integrated -- https://master.php.net/note/delete/98950/integrated
Del: useless -- https://master.php.net/note/delete/98950/useless
Del: bad code -- https://master.php.net/note/delete/98950/bad+code
Del: spam -- https://master.php.net/note/delete/98950/spam
Del: non-english -- https://master.php.net/note/delete/98950/non-english
Del: in docs -- https://master.php.net/note/delete/98950/in+docs
Del: other reasons-- https://master.php.net/note/delete/98950
Reject -- https://master.php.net/note/reject/98950
Search -- https://master.php.net/manage/user-notes.php