note 39244 added to function.strtotime
| From: | g_tharaldson at yahoo dot com | Date: | Wed, 21 Jan 2004 20:59:01 +0000 |
| Subject: | note 39244 added to function.strtotime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-63977@lists.php.net to get a copy of this message | ||
I need help! I'm a PHP moron (seriously) and I'm having trouble with my recordsets being
returned. If the date field im returning is less than January 1, 1970 I get a blank field.
What's the coding I need to compinsate for this.
here's what i currently have:
function get_date_format($val)
{
$val=strtotime($val);
$date_display=date("m/d/Y", $val);
return $date_display;
}
$val could be equal to any date less the 1970 date listed above.
----
Manual Page -- http://www.php.net/manual/en/function.strtotime.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+39244
Delete -- http://master.php.net/manage/user-notes.php?action=delete+39244&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+39244&report=yes
Search -- http://master.php.net/manage/user-notes.php