Re: datetime formatting problem
| From: | Jordan S. Jones | Date: | Fri, 28 May 2004 21:20:15 +0000 |
| Subject: | Re: datetime formatting problem | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-187170@lists.php.net to get a copy of this message | ||
[snip /]
Hi Matt, try this: function formatDate($val) { $timestamp = strtotime($val); return date('M d, Y g:i A', $timestamp); } strtotime possibly will not work if your date is < 01/01/1970.[snip /]