Jump to content

Convert string time to time for RSS


steveclondon

Recommended Posts

Hi

 

I have a string time in my database that I want to convert into a time for use in RSS.

 

The format I have is 20070206095354

which is yyyy dd mm hh mm ss

 

I want to convert to this format

 

Mon, 15 Aug 2005 15:52:01 UTC

 

Also my server is one hour ahead of GMT so I want to take that into account.

 

 

Link to comment
https://forums.phpfreaks.com/topic/37271-convert-string-time-to-time-for-rss/
Share on other sites

its its a string your storing:

 

youd have to explode or something, i dont know

 

if its a timstamp ( it better be )

 

$timestamp;

 

echo strtime(hh dd mm )

 

etc

 

its off the top of my head, but investigate the time and date functions

 

 

good luck

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.