Custom formating of date field on datadriven layout

883
0
10-16-2016 09:44 AM
Arild_MJohannessen
New Contributor II

I have a datadriven layout where one of the underlying datafields contain the datetime of the last change to that page. I'd like to display that date in the format 16 Oct 2016. On ESRIs page on Date, Time and Dynamic Text, it is suggested to use the format tag to achieve this behaviour. However, all the examples seems to use current datetime and not data from the page data. 

This label gives datetime of export

<dyn type="layout" name="MyLayout" property="dateExported" format="d MMM yyyy"/>

This label gives datetime of my datafield in this format: 10/16/2016 6:40 PM

<dyn type="page" property="RevisedDateString" format="d MMM yyyy"/>

How can I format my datetime data properly?

0 Kudos
0 Replies