<?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 Field into Text in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/date-field-into-text/m-p/790573#M8161</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;I am using Survey 123 for field data collection. We are creating sample IDs based on a few fields and one is the date field. I have defaulted the date in the survey, but I when reference date in my code for the sample id, I get a very long 10 digit number (see attachment). We need the date in the sample id to be a 6 digit (mmddyy) format. Is there anyway to convert the date field to a text? Or is there a way to make the date field a mmddyy format without having to use the datetime type?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;Code:&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;if(${matrix}="soil",${object_id}+"_SSPHII_00"+${depth}, if(${matrix}="soilvapor",${object_id}+"_AVPHII_00"+${depth}, if(${matrix}="e_blank","EB_BC"+&lt;SPAN style="font-weight: bold; font-style: inherit; font-family: inherit;"&gt;${date}&lt;/SPAN&gt;,if(${matrix}="a_blank","AB_BC"+&lt;SPAN style="font-weight: bold; font-style: inherit; font-family: inherit;"&gt;${date}&lt;/SPAN&gt;,if(${matrix}="t_blank","TB_BC"+&lt;SPAN style="font-weight: bold; font-style: inherit; font-family: inherit;"&gt;${date}&lt;/SPAN&gt;,"__")))))+"_"+"01"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;Thanks for any and all help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Jun 2016 15:18:56 GMT</pubDate>
    <dc:creator>StaciDratler2</dc:creator>
    <dc:date>2016-06-22T15:18:56Z</dc:date>
    <item>
      <title>Date Field into Text</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/date-field-into-text/m-p/790573#M8161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;I am using Survey 123 for field data collection. We are creating sample IDs based on a few fields and one is the date field. I have defaulted the date in the survey, but I when reference date in my code for the sample id, I get a very long 10 digit number (see attachment). We need the date in the sample id to be a 6 digit (mmddyy) format. Is there anyway to convert the date field to a text? Or is there a way to make the date field a mmddyy format without having to use the datetime type?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;Code:&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;if(${matrix}="soil",${object_id}+"_SSPHII_00"+${depth}, if(${matrix}="soilvapor",${object_id}+"_AVPHII_00"+${depth}, if(${matrix}="e_blank","EB_BC"+&lt;SPAN style="font-weight: bold; font-style: inherit; font-family: inherit;"&gt;${date}&lt;/SPAN&gt;,if(${matrix}="a_blank","AB_BC"+&lt;SPAN style="font-weight: bold; font-style: inherit; font-family: inherit;"&gt;${date}&lt;/SPAN&gt;,if(${matrix}="t_blank","TB_BC"+&lt;SPAN style="font-weight: bold; font-style: inherit; font-family: inherit;"&gt;${date}&lt;/SPAN&gt;,"__")))))+"_"+"01"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;Thanks for any and all help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2016 15:18:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/date-field-into-text/m-p/790573#M8161</guid>
      <dc:creator>StaciDratler2</dc:creator>
      <dc:date>2016-06-22T15:18:56Z</dc:date>
    </item>
  </channel>
</rss>

