<?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: Text field --&amp;gt; Date field in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/text-field-gt-date-field/m-p/1319831#M72208</link>
    <description>&lt;P&gt;So the first thing to do is replace the 12: in your text field to be a valid (generic) time.&amp;nbsp; To do this, I calculated the existing text field using the Replace function:&lt;/P&gt;&lt;P&gt;Replace($feature.date_text, '12:', '12:00:00') - see first image below.&lt;/P&gt;&lt;P&gt;Then in the date/time field, I did another field calculation using the following function:&lt;/P&gt;&lt;P&gt;$feature.date_text - see second image below.&lt;/P&gt;&lt;P&gt;The date/time field now has a valid date/time value that shows 12 noon.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FieldCalc1.JPG" style="width: 209px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/78404i085E9F1C3679E027/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FieldCalc1.JPG" alt="FieldCalc1.JPG" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;FieldCalc1.JPG&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FieldCalc2.JPG" style="width: 209px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/78405i23D7D721AC5B2FA0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FieldCalc2.JPG" alt="FieldCalc2.JPG" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;FieldCalc2.JPG&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Aug 2023 19:56:40 GMT</pubDate>
    <dc:creator>Robert_LeClair</dc:creator>
    <dc:date>2023-08-17T19:56:40Z</dc:date>
    <item>
      <title>Text field --&gt; Date field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/text-field-gt-date-field/m-p/1319814#M72205</link>
      <description>&lt;P&gt;I am trying to populate a new layer based off of some old data I found. However, this one text field that is housing Date info is a little odd. There are spaces between everything and there is a "12:" after almost every entry. How do I get this into my new date field?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Laura_0-1692299867935.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/78403i3DA1CFF22BD0AE35/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Laura_0-1692299867935.png" alt="Laura_0-1692299867935.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Laura_0-1692299867935.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2023 19:18:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/text-field-gt-date-field/m-p/1319814#M72205</guid>
      <dc:creator>Laura</dc:creator>
      <dc:date>2023-08-17T19:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: Text field --&gt; Date field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/text-field-gt-date-field/m-p/1319831#M72208</link>
      <description>&lt;P&gt;So the first thing to do is replace the 12: in your text field to be a valid (generic) time.&amp;nbsp; To do this, I calculated the existing text field using the Replace function:&lt;/P&gt;&lt;P&gt;Replace($feature.date_text, '12:', '12:00:00') - see first image below.&lt;/P&gt;&lt;P&gt;Then in the date/time field, I did another field calculation using the following function:&lt;/P&gt;&lt;P&gt;$feature.date_text - see second image below.&lt;/P&gt;&lt;P&gt;The date/time field now has a valid date/time value that shows 12 noon.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FieldCalc1.JPG" style="width: 209px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/78404i085E9F1C3679E027/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FieldCalc1.JPG" alt="FieldCalc1.JPG" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;FieldCalc1.JPG&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FieldCalc2.JPG" style="width: 209px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/78405i23D7D721AC5B2FA0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FieldCalc2.JPG" alt="FieldCalc2.JPG" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;FieldCalc2.JPG&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2023 19:56:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/text-field-gt-date-field/m-p/1319831#M72208</guid>
      <dc:creator>Robert_LeClair</dc:creator>
      <dc:date>2023-08-17T19:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Text field --&gt; Date field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/text-field-gt-date-field/m-p/1319848#M72211</link>
      <description>&lt;P&gt;Hm, didn't quite work for me. Not sure where all those 000s are coming from&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Laura_0-1692303246177.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/78414i4885B3A8A6990F71/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Laura_0-1692303246177.png" alt="Laura_0-1692303246177.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Laura_0-1692303246177.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2023 20:14:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/text-field-gt-date-field/m-p/1319848#M72211</guid>
      <dc:creator>Laura</dc:creator>
      <dc:date>2023-08-17T20:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: Text field --&gt; Date field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/text-field-gt-date-field/m-p/1319854#M72212</link>
      <description>&lt;P&gt;Hmmmm...that's strange.&amp;nbsp; Can you share the data with me so I may do some testing?&amp;nbsp; My email is rleclair at esri dot com&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2023 20:20:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/text-field-gt-date-field/m-p/1319854#M72212</guid>
      <dc:creator>Robert_LeClair</dc:creator>
      <dc:date>2023-08-17T20:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Text field --&gt; Date field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/text-field-gt-date-field/m-p/1319857#M72213</link>
      <description>&lt;P&gt;Sure&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2023 20:23:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/text-field-gt-date-field/m-p/1319857#M72213</guid>
      <dc:creator>Laura</dc:creator>
      <dc:date>2023-08-17T20:23:39Z</dc:date>
    </item>
  </channel>
</rss>

