Gets the current date and time of the computer running the CFML server.
now()
returns date
Let’s display the current server datetime using script.
writeOutput( 'The current date and time is: ' & now() );
Let’s display the current server datetime using tagged CFML.
<p>The current date and time is: <cfoutput>#now()#</cfoutput></p>