note 34069 rejected from function.settype by didou
| From: | didou@php.net | Date: | Wed, 16 Jul 2003 09:49:33 +0000 |
| Subject: | note 34069 rejected from function.settype by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-52183@lists.php.net to get a copy of this message | ||
Note Submitter: zakdrizzt@hotmail.com
----
How can we "cast" a date.
$d = "2003-06-09";// I get this value from a textfield
$date = (date) $d; or settype($d, date);
this two exemple don't work. how can I do?
because if I send a query with $d it doesn't work cause it doesn't consider this like a
date.