Name

GetHTTPTimeString

Synopsis

                  GetHTTPTimeString([date_time_object])

Returns date_time_object formatted according to the HTTP protocol put forth in RFC1123. 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 MX, 2nd Edition 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.