note 52422 deleted from function.date by felipe
| From: | felipe@php.net | Date: | Sat, 05 Jan 2008 01:54:19 +0000 |
| Subject: | note 52422 deleted from function.date by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-134791@lists.php.net to get a copy of this message | ||
Note Submitter: MG_Peter at o2 dot pl
----
easy way - to convert a "datetime" form mySQL into php date format....
first - get the array form mySQL, then use
<?php
date("d M Y H:i:s", strtotime($your_row['lastlogin_date']))
?>
strtotime - easy converts a datetime timestamp into time ( time() or date("U")).