Jump to content

storing a date format like Wed, 03 Mar 2010 22:07:46 +0000


pmiller624

Recommended Posts

In my PHP application I receive a date and time string in the format like so...

Wed, 03 Mar 2010 22:07:46 +0000

 

what would be the best way to store this in mysql?

what would be the best way pull it from mysql and be able to use PHP's date()?

 

I'm asking this because 'Wed, 03 Mar 2010 22:07:46 +0000' isn't a valid date string (at lest I don't think it is) so when I use date(), it's formatting the date wrong.

 

Thanks

 

ps sorry if this belongs in the mysql section

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.