note 39244 rejected from function.strtotime by tomsommer

From: Date: Wed, 21 Jan 2004 21:09:43 +0000
Subject: note 39244 rejected from function.strtotime by tomsommer
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-63978@lists.php.net to get a copy of this message
Note Submitter: g_tharaldson@yahoo.com ---- 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.

« previous php.notes (#63978) next »