How can I insert the current date / time?

Docmosis has a built in variable that allows you to insert the current date and time:

<<$nowUTC>>

This built in variable can be combined with the date format function to easily display the date / time in your desired format. For example if you just wanted to display the current day and date you could put the following in your template:

<<{dateFormat($nowUTC, ‘EEEE, dd MMMM yyyy’)}>>

The output of this will look something like this:

  Friday, 08 November 2019

 

For more information on working with dates please see the Template Guide.

 

Feedback

Invalid Input

Sorry, this field will only accept letters and numbers, and not special characters, to limit spam.

Sorry, this field will only accept letters and numbers, and not special characters, to limit spam.

Invalid Input

Applies To

Docmosis-Java Tornado Cloud
Version(s) 4.4.0, 4.4.1, 4.4.2, 4.5.0 (Latest) 2.7, 2.7.1, 2.7.2, 2.7.3, 2.8.0 (Latest) ALL