<?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: Survey123 - Pre-populate date based on another date in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-pre-populate-date-based-on-another-date/m-p/859899#M25543</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeff,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because a year can be 365 or 366 days (as it is this year), the most reliable way to set a date of one year out is to use the date() function to read in the date as a string. Assuming a date question of this_date, the formula would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;concat(int(format-date(${this_date},'%Y'))+1,format-date(${this_date},'-%m-%dT12:00:00-08:00'))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note the use of the UTC offset at the end of the time string.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Feb 2020 18:48:21 GMT</pubDate>
    <dc:creator>JamesTedrick</dc:creator>
    <dc:date>2020-02-28T18:48:21Z</dc:date>
    <item>
      <title>Survey123 - Pre-populate date based on another date</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-pre-populate-date-based-on-another-date/m-p/859898#M25542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've created a form using Survey123 Connect that features a date entry (as type) with a default of today()...for example it would populate the form with Thursday, February 27, 2020.&amp;nbsp; Today's date.&lt;/P&gt;&lt;P&gt;As an fyi...I added a new row just below this one (text as type) to reformat this date...for example the new date format is illustrated as 02/27/2020.&amp;nbsp; In using Google Sheets in tandem with Integromat it is necessary that the date be represented as such or you get a very strange entry.&amp;nbsp; Anyway...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further down in my sheet I have another date entry.&amp;nbsp; I would like to take today's date and automatically populate this entry with a date 1 year out from today.&lt;/P&gt;&lt;P&gt;The auto-populate entry for that date would then read 02/27/2021.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can this be done?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2020 17:21:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-pre-populate-date-based-on-another-date/m-p/859898#M25542</guid>
      <dc:creator>JeffDavis7</dc:creator>
      <dc:date>2020-02-27T17:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 - Pre-populate date based on another date</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-pre-populate-date-based-on-another-date/m-p/859899#M25543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeff,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because a year can be 365 or 366 days (as it is this year), the most reliable way to set a date of one year out is to use the date() function to read in the date as a string. Assuming a date question of this_date, the formula would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;concat(int(format-date(${this_date},'%Y'))+1,format-date(${this_date},'-%m-%dT12:00:00-08:00'))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note the use of the UTC offset at the end of the time string.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2020 18:48:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-pre-populate-date-based-on-another-date/m-p/859899#M25543</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2020-02-28T18:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 - Pre-populate date based on another date</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-pre-populate-date-based-on-another-date/m-p/859900#M25544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, James.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's exactly what I needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Much appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2020 19:00:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-pre-populate-date-based-on-another-date/m-p/859900#M25544</guid>
      <dc:creator>JeffDavis7</dc:creator>
      <dc:date>2020-02-28T19:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 - Pre-populate date based on another date</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-pre-populate-date-based-on-another-date/m-p/1603403#M62040</link>
      <description>&lt;P&gt;James, I have a Connect form where the date of sale is set by choosing from the calendar. Then there is another dat entry that needs to calculate the expiration of sale automatically 7 days after the date of sale. I'm trying format date and date time field with the date now() function rather unsuccessfully. Can you please help.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2025 19:08:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-pre-populate-date-based-on-another-date/m-p/1603403#M62040</guid>
      <dc:creator>msa401208</dc:creator>
      <dc:date>2025-04-07T19:08:02Z</dc:date>
    </item>
  </channel>
</rss>

