Whatever message this page gives is out now! Go check it out!

Now

Last update:
May 18, 2026

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

Function syntax

Now()

See also

Example

<cfscript>
    myDatetime = Now();
    writeOutput(myDatetime);
</cfscript>
Output
{ts '2018-11-06 06:59:52'}

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page