ArcGIS Field Maps & Microsoft 365 Email

523
2
Jump to solution
06-08-2022 08:21 AM
JD1016
by
Occasional Contributor III

Hello,

I've created a notification flow for my ArcGIS Field Maps collection events using Integromat.  The actual notification employs the Microsoft 365 Email (Create and Send a Message) module.

Custom HTML has been applied to the Body Content portion of the email calling out essential information extracted from the attribute information collected in the field.  One of the HTML sections contains retrieving the Date from the collection event.  The date, while accurate, will require a bit of HTML formatting to make it a little more user friendly.

The current HTML code is as such...

 

<b>Date</b>:&nbsp
{{7.attributes.PresentDate}}
<p></p>

 

I've also attached two screenshots...one illustrating the actual module and another detailing the data and time format currently being supplied.

Can someone please take a look and provide some valuable HTML code modifications to change the date to mm/dd/yyyy?  The time component at the end is really not necessary at all as well.

Thank you so much for your time in advance!

Jeff

0 Kudos
1 Solution

Accepted Solutions
by Anonymous User
Not applicable

You need to use the formatDate IML function.

View solution in original post

2 Replies
by Anonymous User
Not applicable

You need to use the formatDate IML function.

JD1016
by
Occasional Contributor III

Perfect.  Thank you, Aaron.  Below is the code I ended up using to solve my issue in case anyone needs the help.

<b>Date</b>:&nbsp
{{formatDate(6.attributes.PresentDate; "MM/DD/YYYY hh:mm A")}}
<p></p>

Jeff

0 Kudos