If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Entering RSS date format into MySQL

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-28-05, 14:20
azshah azshah is offline
Registered User
 
Join Date: Apr 2005
Posts: 36
Entering RSS date format into MySQL

Hi,

I am having trouble entering RSS feed format into MySql database the format for the RSS date is as follows Wed, 28 Dec 2005 18:57:16 GMT how would I enter this into the database any help is appreciated.

I am using PHP with MySQL.

Thanks in advance.
Reply With Quote
  #2 (permalink)  
Old 12-28-05, 15:51
azshah azshah is offline
Registered User
 
Join Date: Apr 2005
Posts: 36
Hi,

I have found a way around this problem and thought to post it incase someone else is having the same problem....


$date = Wed, 28 Dec 2005 18:57:16 GMT;

$pubDate = strftime ("%Y-%m-%d", strtotime($date));



will output 2005-12-28 which is compatible with MySQL..

Thanks
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On