ColdFusion date and Atom 1.0 feed

To set the date in ColdFusion in the ISO-8601 format (e.g. 2004-02-12T15:19:21+00:00) use the following:

<cfset var updatedDate = dateFormat(now(), “yyyy-mm-dd”) & “T” & timeFormat(now(), “HH:mm:ss”) & “Z” />

Of course you could turn that into a nice little UDF or utility function 🙂