Name

GetHTTPTimeString — New as of ColdFusion 4.5

Synopsis

GetHTTPTimeString([date_time_object])

Returns date_time_object formatted according to the HTTP protocol put forth in RFC-1123. If no parameter is specified, GetHTTPTimeString( ) returns the current date/time (on the ColdFusion server). Times are output as GMT time. Example:

<CFSET x = GetHTTPTimeString(  )>

<CFOUTPUT>
The current date/time (formatted according to RFC 1123) is: #x#
</CFOUTPUT>

Get Programming ColdFusion now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.