now

Description

Gets the current date and time of the computer running the ColdFusion server. The return value can be passed as a parameter to date functions such as DaysInYear or FirstDayOfMonth.

Categories

Related

Syntax

Now()

Returns

A date/time object; the current date and time of the computer running the ColdFusion server.

Example

<h3>Now Example</h3> 
Now returns the current date and time as a valid date/time object. 
 
The current date/time value is <cfoutput>#Now()#</cfoutput> 
You can also represent this as <cfoutput>#DateFormat(Now())#, 
    #TimeFormat(Now())#</cfoutput>