Skip to main content

PDF/Word Template Timestamp and Geostamp Formatting

Customize the format of your timestamps/geostamps in your templates.

Chad Stoks avatar
Written by Chad Stoks
Updated over 6 months ago

When adding a field to a form you have the option of selecting:

  • Timestamp

  • Geostamp

under the "Show Advanced Setting" options.

Selecting Timestamp records down the time the question was answered.

Selecting Geostamp records down the location where the question was answered.


Displaying the info collected from these fields in your Word/PDF templates is as simple as adding them to the end of the placeholder, for example:

{{fields.Untitled_Question:timestamp}}

or

{{fields.Untitled_Question:geostamp}}

The Word/PDF template will display the Timestamp in a YYYY-MM-DD HH:MM:SS format and the Geostamp will be displayed with a map image, latitude, longitude, and accuracy information.


Maybe you'd rather display the date/time differently. Maybe you only want to see the map. Here are a couple of examples:

If you wanted to display the timestamp as "17 January 2022" you could use:

{{fields.Untitled_Question:timestamp|date_time_format: "%d %B %Y"}}

If you wanted to display the timestamp as "11:15 AM January 17, 2022" you could use:

{{fields.Untitled_Question:timestamp|date_time_format: "%I:%M %p %B %e, %Y"

To see ALL of the available date/time formatting options check out the following article:


Here are a couple examples of customizing the geostamp:

If you want to hide the map and only show Latitude and Longitude (note the comma before hide_map):

{{fields.Untitled_Question:geostamp|show_coordinate_info: "%lat, %long", hide_map: true}}

If you only want to display the map:

{{fields.Untitled_Question:geostamp|show_coordinate_info: false}}

To see ALL of the available location formatting options check out the following article:


Note: If you would like the geostamp or timestamp value to be displayed as a value in your Mobile form/ DM Database, add a Calculated Question with the TIMESTAMP() or GEOSTAMP() function.
​
More info here.


If you have any questions or comments feel free to send us a message at support@devicemagic.com.

Did this answer your question?