Thanks,
This works.
It gets the correct date.
Search found 192 matches
- Sun Mar 07, 2010 11:17 pm
- Forum: PHP
- Topic: Solved Converting rrs-date format to MySQL date format
- Replies: 5
- Views: 29310
- Fri Mar 05, 2010 10:31 pm
- Forum: PHP
- Topic: Solved Converting rrs-date format to MySQL date format
- Replies: 5
- Views: 29310
Re: Converting rrs-date format to MySQL date format
Hi,
strtotime() doesn't do it for me.
I have the following code:
Wich results in:
Fri, 5 Mar 2010 08:00:00 System/Localtime
1970-01-01
My php version:
PHP 5.2.6
strtotime() doesn't do it for me.
I have the following code:
Code: Select all
$pubdate=date('Y-m-d',strtotime($rssdate));
print $rssdate."\n";
print $pubdate."\n";
Fri, 5 Mar 2010 08:00:00 System/Localtime
1970-01-01
My php version:
PHP 5.2.6