<?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: Pulling day/month/year from datetime fields in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/pulling-day-month-year-from-datetime-fields/m-p/680059#M52694</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Britta,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can use the following calculation in the field calculator (be sure 'Python' is checked at the top).&amp;nbsp; This will work for a field of type Date.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;!UTC_Time!.split(' ')[0]&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Sep 2012 18:40:49 GMT</pubDate>
    <dc:creator>JakeSkinner</dc:creator>
    <dc:date>2012-09-11T18:40:49Z</dc:date>
    <item>
      <title>Pulling day/month/year from datetime fields</title>
      <link>https://community.esri.com/t5/python-questions/pulling-day-month-year-from-datetime-fields/m-p/680058#M52693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Please see my attached image.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My original date field ("UTC_Time") contains thousands of unique datetime combinations and I want to have a field without the hhMMss time. I'm searching for a way to populate a field ("Day_Month_Year") to have a format similar to dd/mm/YYYY ("Flight_Date"). Since I want my attribute table to have fields with both date/time and just date, I don't want to change just the formatting of my OS. I was able to create a string field ("Flight_Date") but this doesn't serve my needs for further date calculations. Searching the Python tutorial, this is the best code I could conceive with my limited Python knowledge. I don't want to be that person who asks for someone to write my code, I would just appreciate being put on the right track. Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]17609[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 18:25:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/pulling-day-month-year-from-datetime-fields/m-p/680058#M52693</guid>
      <dc:creator>BrittaSchroeder</dc:creator>
      <dc:date>2012-09-11T18:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling day/month/year from datetime fields</title>
      <link>https://community.esri.com/t5/python-questions/pulling-day-month-year-from-datetime-fields/m-p/680059#M52694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Britta,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can use the following calculation in the field calculator (be sure 'Python' is checked at the top).&amp;nbsp; This will work for a field of type Date.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;!UTC_Time!.split(' ')[0]&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 18:40:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/pulling-day-month-year-from-datetime-fields/m-p/680059#M52694</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2012-09-11T18:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling day/month/year from datetime fields</title>
      <link>https://community.esri.com/t5/python-questions/pulling-day-month-year-from-datetime-fields/m-p/680060#M52695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jake-&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks! Worked like a charm!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Britta&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 19:10:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/pulling-day-month-year-from-datetime-fields/m-p/680060#M52695</guid>
      <dc:creator>BrittaSchroeder</dc:creator>
      <dc:date>2012-09-11T19:10:37Z</dc:date>
    </item>
  </channel>
</rss>

