XpressDox Help Center

Use Google To Find Help Fast, e.g. xpressdox choosefromlist


Press Getting Started in the XpressDox toolbar for basic template development
Watch the tutorial videos
View command help from list of commands
Press F1 for help on a command in the Command Editor
Email support@xpressdox.com for assistance

The Now Function


The Now Function

Now

The Now function inserts the current date and/or time into the document. It can be formatted in the same way as for FormatDate.

<<Now("d MMMM, yyyy")>>

yields ‘4 November, 2010’

<<Now("MMMM o yyyy")>>

yields ‘November 4th 2010’

<<Now("yyyy/MM/dd HH:mm:ss.fff")>>

yields ‘2011/04/14 17:05:23.010’ which is exactly the same as <<Now()>>

A twelve-hour time with AM or PM is achieved by

<<Now("yyyy/MM/dd hh:mm:ss.fff tt")>>

which yields the above time as ‘2011/04/14 05:05:23.010 PM’.

<<Now("d MMMM, yyyy", "af")>>

On 1st January 2008 this would yield ‘1 Januarie, 2008’.

Note that the value inserted into the document is a normal string value and is the date and time that the template was run in XpressDox. In this regard it differs from the Word date fillpoint which inserts the date on which the document is printed or opened, regardless of when it is created.

Leave a Reply