<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to format dates in data driven pages fields in Mapping Questions</title>
    <link>https://community.esri.com/t5/mapping-questions/how-to-format-dates-in-data-driven-pages-fields/m-p/48214#M551</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way to format date fields in data driven page fields like you can do for dynamic text?&amp;nbsp; In dynamic text dates you can do things like format="short" but this does not work on data driven pages.&amp;nbsp; I have searched all over and found nothing.&amp;nbsp; Only option was to use an expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to do this&lt;/P&gt;&lt;P&gt;&amp;lt;dyn type="page" property="attribute" field="Date_" domainlookup="true"&amp;nbsp; format="short"/&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Dec 2015 16:36:24 GMT</pubDate>
    <dc:creator>DougBrowning</dc:creator>
    <dc:date>2015-12-01T16:36:24Z</dc:date>
    <item>
      <title>How to format dates in data driven pages fields</title>
      <link>https://community.esri.com/t5/mapping-questions/how-to-format-dates-in-data-driven-pages-fields/m-p/48214#M551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way to format date fields in data driven page fields like you can do for dynamic text?&amp;nbsp; In dynamic text dates you can do things like format="short" but this does not work on data driven pages.&amp;nbsp; I have searched all over and found nothing.&amp;nbsp; Only option was to use an expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to do this&lt;/P&gt;&lt;P&gt;&amp;lt;dyn type="page" property="attribute" field="Date_" domainlookup="true"&amp;nbsp; format="short"/&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2015 16:36:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/how-to-format-dates-in-data-driven-pages-fields/m-p/48214#M551</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2015-12-01T16:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to format dates in data driven pages fields</title>
      <link>https://community.esri.com/t5/mapping-questions/how-to-format-dates-in-data-driven-pages-fields/m-p/48215#M552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You haven't missed anything. The dynamic text for data driven page fields just gets the information from the field as is. The various formatting tags are not supported in those cases. Might be a good idea to submit to the Ideas site.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2015 18:16:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/how-to-format-dates-in-data-driven-pages-fields/m-p/48215#M552</guid>
      <dc:creator>DavidBarnes</dc:creator>
      <dc:date>2015-12-01T18:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to format dates in data driven pages fields</title>
      <link>https://community.esri.com/t5/mapping-questions/how-to-format-dates-in-data-driven-pages-fields/m-p/48216#M553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bummer.&amp;nbsp; For now I am doing a label expression and then using the expression tag in the data driven page field.&amp;nbsp; Like &lt;SPAN style="color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-weight: bold;"&gt;&amp;lt;dyn type="page" property="expression"/&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression was not easy to figure out&lt;/P&gt;&lt;P&gt;def FindLabel ([DATE_]):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; s = [DATE_]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if s is None:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return None&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return s.split(" ").pop(0)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2015 19:06:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/how-to-format-dates-in-data-driven-pages-fields/m-p/48216#M553</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2015-12-01T19:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to format dates in data driven pages fields</title>
      <link>https://community.esri.com/t5/mapping-questions/how-to-format-dates-in-data-driven-pages-fields/m-p/48217#M554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks - I didn't need the time stamp at all, so I used your function to strip it out of the date field using the field calculator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Strip time from date field.jpg" class="image-1 jive-image" src="/legacyfs/online/188076_Strip time from date field.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 19:03:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/how-to-format-dates-in-data-driven-pages-fields/m-p/48217#M554</guid>
      <dc:creator>JimmyKroon</dc:creator>
      <dc:date>2016-02-29T19:03:04Z</dc:date>
    </item>
  </channel>
</rss>

