<?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 can I label the current date within a label expression? in Mapping Questions</title>
    <link>https://community.esri.com/t5/mapping-questions/how-can-i-label-the-current-date-within-a-label/m-p/28403#M319</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way that I can label the current date from within a label expression without pulling from a field in the attribute table? I've been trying to use datetime.now() and datetime.today() but haven't been able to get those to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;P&gt;python‌&amp;nbsp;python label expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Sep 2019 13:10:51 GMT</pubDate>
    <dc:creator>Tim-Woodfield</dc:creator>
    <dc:date>2019-09-30T13:10:51Z</dc:date>
    <item>
      <title>How can I label the current date within a label expression?</title>
      <link>https://community.esri.com/t5/mapping-questions/how-can-i-label-the-current-date-within-a-label/m-p/28403#M319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way that I can label the current date from within a label expression without pulling from a field in the attribute table? I've been trying to use datetime.now() and datetime.today() but haven't been able to get those to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;P&gt;python‌&amp;nbsp;python label expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Sep 2019 13:10:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/how-can-i-label-the-current-date-within-a-label/m-p/28403#M319</guid>
      <dc:creator>Tim-Woodfield</dc:creator>
      <dc:date>2019-09-30T13:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: How can I label the current date within a label expression?</title>
      <link>https://community.esri.com/t5/mapping-questions/how-can-i-label-the-current-date-within-a-label/m-p/28404#M320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Timothy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;def FindLabel ( &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;myVar = datetime.datetime.now()&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;return myVar.strftime("%Y-%m-%d")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can then format from there&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;def FindLabel ( &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;myVar = datetime.datetime.now()&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;return myVar.strftime("%Y-%m-%d %H:%M:%S")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Wendy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Sep 2019 22:49:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/how-can-i-label-the-current-date-within-a-label/m-p/28404#M320</guid>
      <dc:creator>WendyHarrison</dc:creator>
      <dc:date>2019-09-30T22:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: How can I label the current date within a label expression?</title>
      <link>https://community.esri.com/t5/mapping-questions/how-can-i-label-the-current-date-within-a-label/m-p/28405#M321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This worked perfectly. I was able to incorporate my existing label expression right into it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Oct 2019 13:14:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/how-can-i-label-the-current-date-within-a-label/m-p/28405#M321</guid>
      <dc:creator>Tim-Woodfield</dc:creator>
      <dc:date>2019-10-02T13:14:51Z</dc:date>
    </item>
  </channel>
</rss>

