<?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 Re: Autofill date in file name in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/autofill-date-in-file-name/m-p/717154#M31603</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is actually pretty slick in ModelBuilder.&lt;/P&gt;&lt;P&gt;Put in a "Calculate Value" like this, with the&amp;nbsp;expression =&amp;nbsp;time.strftime("%Y%m%d") and the output name "Today" (output name can be whatever you like).&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" height="302" src="https://community.esri.com/legacyfs/online/507143_pastedImage_1.png" width="794" /&gt;&lt;/P&gt;&lt;P&gt;I make the "Today" output a precondition to something early in the model, so I&amp;nbsp;know it will run before the model gets to the point where I need it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next,&amp;nbsp;name your final model outputs something like this c:\temp\OutputOne%Today%&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The %Today% will grab the value from your Calculate Value operation and make it part of the filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Sep 2020 22:40:45 GMT</pubDate>
    <dc:creator>JayJohnsonWashoeCounty</dc:creator>
    <dc:date>2020-09-16T22:40:45Z</dc:date>
    <item>
      <title>Autofill date in file name</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/autofill-date-in-file-name/m-p/717153#M31602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm running a model and I do this on a daily basis with data that changes on the day.&amp;nbsp; I would like to be able to have Arc automatically fill in the date in the filename with just a DDMMM (&lt;SPAN style="text-decoration: underline;"&gt;D&lt;/SPAN&gt;ay &lt;SPAN style="text-decoration: underline;"&gt;M&lt;/SPAN&gt;onth) or something similar in the file name, instead of me manually editing the six output files in model builder prior to running it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Essentially I would like the file to look like "example_16SEP.shp" today, and tomorrow it would say "example_17SEP.shp" as the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this a thing I can do in Arc?&amp;nbsp; I'm sure there's a script somewhere, I just can't seem to find it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2020 16:05:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/autofill-date-in-file-name/m-p/717153#M31602</guid>
      <dc:creator>ThomMullinaux</dc:creator>
      <dc:date>2020-09-16T16:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: Autofill date in file name</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/autofill-date-in-file-name/m-p/717154#M31603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is actually pretty slick in ModelBuilder.&lt;/P&gt;&lt;P&gt;Put in a "Calculate Value" like this, with the&amp;nbsp;expression =&amp;nbsp;time.strftime("%Y%m%d") and the output name "Today" (output name can be whatever you like).&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" height="302" src="https://community.esri.com/legacyfs/online/507143_pastedImage_1.png" width="794" /&gt;&lt;/P&gt;&lt;P&gt;I make the "Today" output a precondition to something early in the model, so I&amp;nbsp;know it will run before the model gets to the point where I need it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next,&amp;nbsp;name your final model outputs something like this c:\temp\OutputOne%Today%&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The %Today% will grab the value from your Calculate Value operation and make it part of the filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2020 22:40:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/autofill-date-in-file-name/m-p/717154#M31603</guid>
      <dc:creator>JayJohnsonWashoeCounty</dc:creator>
      <dc:date>2020-09-16T22:40:45Z</dc:date>
    </item>
  </channel>
</rss>

