Reply to Formatting a date to RFC 822

Your name:

Reply:


Posted by Simon Harris on 01/20/07 22:41

Hi All,

I am currently writing an RSS 2.0 feed (My first one!). I need to format the
pubdate to RFC 822, e.g:
Sat, 07 Sep 2002 09:42:31 GMT

I am storing dates in mySQL using NOW() mySQL function, which stores the
dates as:
2006-10-28 04:05:56

I have tried using format("r",row{'dateUpdated'}) but this returns the
following value, irrespective of the actual mySQL stored value:
Thu, 01 Jan 1970 01:33:26 +0100

Any help will be much appreciated.

Simon.


--
* Please reply to group for the benefit of all
* Found the answer to your own question? Post it!
* Get a useful reply to one of your posts?...post an answer to another one
* Search first, post later : http://www.google.co.uk/groups
* Want my email address? Ask me in a post...Cos2MuchSpamMakesUFat!

--------------------------------------------------------------------------------
I am using the free version of SPAMfighter for private users.
It has removed 2856 spam emails to date.
Paying users do not have this message in their emails.
Try SPAMfighter for free now!

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация