Now

Description

Returns the current date and time of the computer running the ColdFusion server. The date and time is in the form of a date/time object, which can be passed as a parameter to many date functions, such as DaysInYear or FirstDayOfMonth.

Category

Date and time functions

Syntax


Now() 

See also

CreateDateTime, DatePart

Example

<!--- This example shows Now() --->

<html>

<head>

<title>Now Example</title>

</head>



<body>

<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>



</body>

</html>    







Banner.Novgorod.Ru