Select to view content in your preferred language

Record time in field maps

346
1
10-31-2024 05:09 AM
DianaAlvarez
Emerging Contributor

I need a field to record time in format 10:23, we are using field maps. what type of field do I need to use and how do I set it up when it is already shared to portal enterprise? 

Thanks, 

0 Kudos
1 Reply
ChristopherCounsell
MVP Regular Contributor

Two options:

  • DateTime field + record both date and time
  • String field, record the time as a string.

If calculating it use Arcade:

  • Now() will calculate the current date and time for a datetime field.
  • Text(Now(), 'h:m') will take the current date and time and format it as text for hours and minutes only.

https://developers.arcgis.com/arcade/function-reference/text_functions/#text

More Text conversion with time examples above.

Arcade functions for DateOnly and TimeOnly, and the Date and Time only field types, won't be supported in Field Maps yet, so don't pursue those.

 

0 Kudos