jump to navigation

Date Parsing with ColdFusion / Twitter June 2, 2009

Posted by scoopseven in ColdFusion.
Tags:
2 comments

The Twitter API is great. Except for the dates it returns, especially if you’re a ColdFusion progammer. I ended up using some code posted by Peter Freitag  to write a UDF to convert the Twitter date/time to a ColdFusion friendly date/time.  

Twitter makes matters worse with it’s inconsistency between the REST and Search APIs. My UDF also deals with the different date formats returned by the Twitter APIs. 

Search API returns: Sat, 16 May 2009 05:26:32 +0000
REST API returns: Sat May 16 05:26:32 +0000 2009 

Nice.

*As of May 2009 the Twitter REST API and Search API still return different date formats. http://code.google.com/p/twitter-api/issues/detail?id=206

If you’re interested in the udf, comment or email me at mark at mediapost.com. Unless it’s a weekend I’ll get it to you within a couple of hours.