HOW TO

Display dates based on an Epoch value in an ArcGIS Survey123 web survey

Last Published: November 17, 2022

Summary

Epoch value refers to the way a computer measures system time. For example, the date 11/11/2022 is stored as 1668124800 in Epoch value. While users can use third-party converters to convert an Epoch timestamp into a date displayed as day, month, and year, instantly converting the input Epoch value in an ArcGIS Survey123 web survey can be considerably convenient and informative.

This article provides the workflow to display an Epoch value as a readable date in an ArcGIS Survey123 web survey using the advanced XLSForm features in ArcGIS Survey123 Connect.

Procedure

  1. In ArcGIS Survey123 Connect, open the survey's XLSForm.
  2. Create a survey question for the survey user to input an Epoch timestamp.
    1. In the survet worksheet, in the type column, select integer.
    2. Configure the name column. In this example, the name of the question is inputEpoch.
    3. In the default column, type 0.
The row of the integer type element in the XLSForm.
  1. Create a note to convert and display the input Epoch timestamp to a readable date.
    1. In the type column, select note and configure the name column. In this example, the name is note1.
    2. In the calculation column, enter the formula below.
if(${inputEpoch}=0, " ", ((${inputEpoch} div 86400)))
  1. In the bind::type column, select date.
The row of the note type element in the XLSForm.
  1. Save the XLSForm.
  2. In ArcGIS Survey123 Connect, click Publish.
  3. Click More actions.
The ArcGIS Survey123 Connect sidebar.
  1. In the More Actions window, click Open in Survey123 web app.

The Epoch time is automatically converted and displayed as a readable date in the web form.

The ArcGIS Survey123 web survey displayed in the browser.

The readable date is also listed in the collected records of the survey. Refer to ArcGIS Survey123: View all data for more information.

The records of submitted responses for the ArcGIS Survey123 web survey.

Article ID: 000028765

Software:
  • ArcGIS Survey123 Connect
  • ArcGIS Survey123 Website

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options