Use Google to find help fast. For example, search on "xpressdox choosefromlist".

The Now and Today Functions

The Now and Today Functions

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.

Today

The Today function is exactly the same as the Now function, except that Today does not include the time of day.

On the 15th of April 2011, <<Today()>> will yield the value ‘2011-04-15’.

2 thoughts on “The Now and Today Functions

    1. The help text has been updated. The Now function has always been able to handle a 12 hour time with AM and PM, it just hasn’t been documented nicely. Thanks for the nudge.

Leave a Reply