Parsing Atom Dates (ISO8601) in ColdFusion
Need to parse the dates in an Atom feed? Atom feeds use ISO 8601 formatted dates, something like this;
1994-11-05T08:15:30-05:00 with a UTC offset, or like this:
1994-11-05T13:15:30Z in GMT. You can come across both formats in an Atom feed, the
atom:modified element MUST have a timezone specified, while the
atom:issued element MAY specify a timezone.
Before getting too far, I checked CFLib's date library, and sure enough I found a function called DateConvertISO8601 by David Satz. From my limited testing the function seams to work well for parsing Atom / ISO8601 dates.
Like this? Follow me ↯Tweet Follow @pfreitag
Parsing Atom Dates (ISO8601) in ColdFusion was first published on February 24, 2005.
If you like reading about atom, xml, or cfml then you might also like:
- Foundeo's 2007 End of the Year Sale
- AJAX Tutorial with Prototype
- SoloSub is for button addicts
- The Proper Content Type for XML Feeds
- XPath Tool
- Parsing RSS 1.0 with ColdFusion MX
- RSS and XPath
- Parsing RSS with CFMX
The FuseGuard Web Application Firewall for ColdFusion & CFML is a high performance, customizable engine that blocks various attacks against your ColdFusion applications.