<?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 Date output does not show &amp;quot;time&amp;quot; in Model Builder in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/date-output-does-not-show-quot-time-quot-in-model/m-p/794034#M2281</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have developed a Python script using ArcPy with one of the output variable being of Date type. In the actual Python code, the variable is a Python &lt;STRONG&gt;datetime&lt;/STRONG&gt; object which has both the date and time sections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A snippet of Python script "ExtractNetCDFToRaster.py" is as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class=""&gt;&lt;CODE&gt;&lt;SPAN class=""&gt;import&lt;/SPAN&gt;&lt;SPAN class=""&gt; sys&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt;&lt;SPAN class=""&gt; os&lt;/SPAN&gt;&lt;SPAN class=""&gt;from&lt;/SPAN&gt;&lt;SPAN class=""&gt; os&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;path &lt;/SPAN&gt;&lt;SPAN class=""&gt;import&lt;/SPAN&gt;&lt;SPAN class=""&gt; basename&lt;/SPAN&gt;&lt;SPAN class=""&gt;import&lt;/SPAN&gt;&lt;SPAN class=""&gt; arcpy&lt;/SPAN&gt;&lt;SPAN class=""&gt;import&lt;/SPAN&gt;&lt;SPAN class=""&gt; datetime&lt;/SPAN&gt;&lt;SPAN class=""&gt;from&lt;/SPAN&gt;&lt;SPAN class=""&gt; dateutil &lt;/SPAN&gt;&lt;SPAN class=""&gt;import&lt;/SPAN&gt;&lt;SPAN class=""&gt; tz &lt;/SPAN&gt;&lt;SPAN class=""&gt;# Convert UTC datetime to local datetime&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;def&lt;/SPAN&gt;&lt;SPAN class=""&gt; convertToLocalDT&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;string&lt;/SPAN&gt;&lt;SPAN class=""&gt;):&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from_zone &lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt; tz&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;tzutc&lt;/SPAN&gt;&lt;SPAN class=""&gt;()&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; to_zone &lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt; tz&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;tzlocal&lt;/SPAN&gt;&lt;SPAN class=""&gt;()&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class=""&gt;# 20/11/2017 1:00:00 PM&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dtUTC &lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt; datetime&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;datetime&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;strptime&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;string&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;"%d/%m/%Y %I:%M:%S %p"&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dtLocal &lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt; dtUTC&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;replace&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;tzinfo&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;from_zone&lt;/SPAN&gt;&lt;SPAN class=""&gt;).&lt;/SPAN&gt;&lt;SPAN class=""&gt;astimezone&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;to_zone&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class=""&gt;return&lt;/SPAN&gt;&lt;SPAN class=""&gt; dtLocal &lt;/SPAN&gt;&lt;SPAN class=""&gt;...&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;# get dimension values from the time dimension&lt;/SPAN&gt;&lt;SPAN class=""&gt;dimension_values &lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt; nc_FP&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;getDimensionValue&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;"time"&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;0&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;# the dimension_values is of a unicode type of data, e.g. u'20/11/2017 1:00:00 PM'&lt;/SPAN&gt;&lt;SPAN class=""&gt;strDimensionValues &lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt; dimension_values&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;encode&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;'utf-8'&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;arcpy&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;AddMessage&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;"dimension_values: "&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;+&lt;/SPAN&gt;&lt;SPAN class=""&gt; strDimensionValues&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;dtDimensionValues &lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt; convertToLocalDT&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;strDimensionValues&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;...&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;# Set dtDimensionValues as output which has an alias of "outDateTime" in the tool Properties window.&lt;/SPAN&gt;&lt;SPAN class=""&gt;arcpy&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;SetParameter&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;5&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt;&lt;SPAN class=""&gt; dtDimensionValues&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="384149" alt="The properties window for the custom tool" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/384149_Datetime.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;When I imported this script into a Model as a custom tool and ran the tool, the variable only output the date but not the time section. For example, if the actual datetime is "2017-11-21 00:00:00" the outDateTime only shows "21/11/2017" as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/384220_Datetime2.png" style="width: 620px; height: 412px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Nov 2017 04:19:24 GMT</pubDate>
    <dc:creator>AlexChen</dc:creator>
    <dc:date>2017-11-20T04:19:24Z</dc:date>
    <item>
      <title>Date output does not show "time" in Model Builder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/date-output-does-not-show-quot-time-quot-in-model/m-p/794034#M2281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have developed a Python script using ArcPy with one of the output variable being of Date type. In the actual Python code, the variable is a Python &lt;STRONG&gt;datetime&lt;/STRONG&gt; object which has both the date and time sections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A snippet of Python script "ExtractNetCDFToRaster.py" is as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class=""&gt;&lt;CODE&gt;&lt;SPAN class=""&gt;import&lt;/SPAN&gt;&lt;SPAN class=""&gt; sys&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt;&lt;SPAN class=""&gt; os&lt;/SPAN&gt;&lt;SPAN class=""&gt;from&lt;/SPAN&gt;&lt;SPAN class=""&gt; os&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;path &lt;/SPAN&gt;&lt;SPAN class=""&gt;import&lt;/SPAN&gt;&lt;SPAN class=""&gt; basename&lt;/SPAN&gt;&lt;SPAN class=""&gt;import&lt;/SPAN&gt;&lt;SPAN class=""&gt; arcpy&lt;/SPAN&gt;&lt;SPAN class=""&gt;import&lt;/SPAN&gt;&lt;SPAN class=""&gt; datetime&lt;/SPAN&gt;&lt;SPAN class=""&gt;from&lt;/SPAN&gt;&lt;SPAN class=""&gt; dateutil &lt;/SPAN&gt;&lt;SPAN class=""&gt;import&lt;/SPAN&gt;&lt;SPAN class=""&gt; tz &lt;/SPAN&gt;&lt;SPAN class=""&gt;# Convert UTC datetime to local datetime&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;def&lt;/SPAN&gt;&lt;SPAN class=""&gt; convertToLocalDT&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;string&lt;/SPAN&gt;&lt;SPAN class=""&gt;):&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from_zone &lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt; tz&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;tzutc&lt;/SPAN&gt;&lt;SPAN class=""&gt;()&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; to_zone &lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt; tz&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;tzlocal&lt;/SPAN&gt;&lt;SPAN class=""&gt;()&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class=""&gt;# 20/11/2017 1:00:00 PM&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dtUTC &lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt; datetime&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;datetime&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;strptime&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;string&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;"%d/%m/%Y %I:%M:%S %p"&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dtLocal &lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt; dtUTC&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;replace&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;tzinfo&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;from_zone&lt;/SPAN&gt;&lt;SPAN class=""&gt;).&lt;/SPAN&gt;&lt;SPAN class=""&gt;astimezone&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;to_zone&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class=""&gt;return&lt;/SPAN&gt;&lt;SPAN class=""&gt; dtLocal &lt;/SPAN&gt;&lt;SPAN class=""&gt;...&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;# get dimension values from the time dimension&lt;/SPAN&gt;&lt;SPAN class=""&gt;dimension_values &lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt; nc_FP&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;getDimensionValue&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;"time"&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;0&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;# the dimension_values is of a unicode type of data, e.g. u'20/11/2017 1:00:00 PM'&lt;/SPAN&gt;&lt;SPAN class=""&gt;strDimensionValues &lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt; dimension_values&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;encode&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;'utf-8'&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;arcpy&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;AddMessage&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;"dimension_values: "&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;+&lt;/SPAN&gt;&lt;SPAN class=""&gt; strDimensionValues&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;dtDimensionValues &lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt; convertToLocalDT&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;strDimensionValues&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;...&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;# Set dtDimensionValues as output which has an alias of "outDateTime" in the tool Properties window.&lt;/SPAN&gt;&lt;SPAN class=""&gt;arcpy&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;SetParameter&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;5&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt;&lt;SPAN class=""&gt; dtDimensionValues&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="384149" alt="The properties window for the custom tool" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/384149_Datetime.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;When I imported this script into a Model as a custom tool and ran the tool, the variable only output the date but not the time section. For example, if the actual datetime is "2017-11-21 00:00:00" the outDateTime only shows "21/11/2017" as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/384220_Datetime2.png" style="width: 620px; height: 412px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2017 04:19:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/date-output-does-not-show-quot-time-quot-in-model/m-p/794034#M2281</guid>
      <dc:creator>AlexChen</dc:creator>
      <dc:date>2017-11-20T04:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Date output does not show "time" in Model Builder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/date-output-does-not-show-quot-time-quot-in-model/m-p/794035#M2282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would an output string be what you are looking for from the python side?&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;n &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; datetime&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;datetime&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;now&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
n
datetime&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;datetime&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2017&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;11&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;20&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;14&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;19&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;245760&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

n&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;__str__&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="string token"&gt;'2017-11-20 01:14:19.245760'&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:08:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/date-output-does-not-show-quot-time-quot-in-model/m-p/794035#M2282</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-12T09:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: Date output does not show "time" in Model Builder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/date-output-does-not-show-quot-time-quot-in-model/m-p/794036#M2283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Dan. Thanks! I can do String output from the script. But the script will be used as a custom tool to be imported into a main Model called "MainModel". The MainModel will add the output date and time to a field of Date type (called "_Time") in a Shapefile. Does the "_Time" field automatically pick up a String as Date type?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2017 23:50:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/date-output-does-not-show-quot-time-quot-in-model/m-p/794036#M2283</guid>
      <dc:creator>AlexChen</dc:creator>
      <dc:date>2017-11-20T23:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: Date output does not show "time" in Model Builder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/date-output-does-not-show-quot-time-quot-in-model/m-p/794037#M2284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it is adding it to shapefile..,. &lt;STRONG&gt;&lt;A href="http://desktop.arcgis.com/en/arcmap/latest/manage-data/shapefiles/geoprocessing-considerations-for-shapefile-output.htm"&gt;time is not supported&lt;/A&gt;&amp;nbsp;&lt;/STRONG&gt;wish I had known that initially....&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #4d4d4d; font-family: 'Lucida Grande','Segoe UI','Arial',sans-serif; font-size: 13.93px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;date fields only support date. They do not support time.&lt;/SPAN&gt;&lt;/P&gt;&lt;H5 style="box-sizing: border-box; float: left; font-family: &amp;amp;quot; avenir lt w01 65 medium&amp;amp;quot;,arial,helvetica,sans-serif; font-size: 13.93px; font-style: normal; font-weight: 500; left: auto; letter-spacing: 0.27px; line-height: 20.9px; position: relative; text-transform: none; top: auto; white-space: nowrap; width: 89.25px; padding: 0px 16px 0px 6.96px; margin: 0px 0px 8.77px 0px;"&gt;Caution:&lt;/H5&gt;&lt;DIV style="box-sizing: border-box; float: left; width: 624.81px; padding: 0px 6.96px 0px 6.96px;"&gt;&lt;P style="font-size: 13.93px; line-height: 23.82px; margin-bottom: 23.82px; margin-top: 0px;"&gt;The nonsupport of time in date fields can be a serious limitation for any tool that performs temporal analysis, such as those found in the &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/space-time-pattern-mining-toolbox/an-overview-of-the-space-time-pattern-mining-toolbox.htm" style="color: #007ac2; text-decoration: none;"&gt;Space Time Pattern Mining&lt;/A&gt; toolbox. Avoid using shapefiles for any kind of temporal analysis or date time calculation.&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2017 23:56:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/date-output-does-not-show-quot-time-quot-in-model/m-p/794037#M2284</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-11-20T23:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: Date output does not show "time" in Model Builder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/date-output-does-not-show-quot-time-quot-in-model/m-p/794038#M2285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Dan. You are right. The help documentation states:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.3/manage-data/tables/fundamentals-of-date-fields.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/manage-data/tables/fundamentals-of-date-fields.htm"&gt;Fundamentals of date fields—Help | ArcGIS for Desktop&lt;/A&gt;&lt;/P&gt;&lt;H2&gt;Displaying dates&lt;/H2&gt;&lt;P&gt;A coverage or shapefile stores dates in a date field with this format: yyyy-mm-dd. A geodatabase formats the date as datetime yyyy-mm-dd hh:mm:ss AM or PM. Settings on your Windows system determine how the dates are displayed in ArcMap—M/d/yy, MM/dd/yy, yy/MM/dd, and so on. ArcMap uses the system short date format (numerical) for displaying dates.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;So I should use feature class in a file geodatabase instead of shapefile.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 00:09:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/date-output-does-not-show-quot-time-quot-in-model/m-p/794038#M2285</guid>
      <dc:creator>AlexChen</dc:creator>
      <dc:date>2017-11-21T00:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: Date output does not show "time" in Model Builder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/date-output-does-not-show-quot-time-quot-in-model/m-p/794039#M2286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes... your alternative would be as I suggested which would complicate your workflow, since you would have to do the date conversion to string, then add the result to a text field and not a date field. &amp;nbsp; I would suggest the FC in the gdb&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 00:14:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/date-output-does-not-show-quot-time-quot-in-model/m-p/794039#M2286</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-11-21T00:14:32Z</dc:date>
    </item>
  </channel>
</rss>

