how to use MYSQL date type string in php?
| From: | mydata | Date: | Thu, 20 Sep 2001 03:54:21 +0000 |
| Subject: | how to use MYSQL date type string in php? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-67934@lists.php.net to get a copy of this message | ||
hi, I 'm new developer in php
I always need to get the date or time from mysql ,and dead it in php,but I
found it defficult to deal mysql date type string in php. mysql date type
string always like "yyyy-mm-dd",in php4.06 I can use strtotime fuction
convert it to unixtimestamp,but in php4.0 ,strtotime des not work.I don't
know why?
And I want to know about how to deal date type string (speciall like
"yyyy-mm-dd") in php , and how to add days in date type string and so
on.Could you introduce me some good code sample or good link about deal
datetime in php.