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.

Returns

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

Category

Date and time functions

Function syntax

Now()

See also

CreateDateTimeDatePart

Example

<h3>Now Example</h3> 
<p>Now returns the current date and time as a valid date/time object. 

<p>The current date/time value is <cfoutput>#Now()#</cfoutput> 
<p>You can also represent this as <cfoutput>#DateFormat(Now())#, 
#TimeFormat(Now())#</cfoutput>

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy