**bleep** oeveryone,
Is there a way to format a date filed in a Popup window in a WebMap?
I would like to display only month and year (MM/YYYY)
Thanks
You could use an Arcade Expresison to do that work. Example:
var theDate = Now(); var theMonth = Month(theDate) + 1; //Month() returns a value 0-11 so add 1 to it return theMonth + '/' + Year(theDate);
A simpler way would be to use Text formatting
var date = Now(); return Text(date,"MM/YYYY");
If you want just name of the month and year ( May 2022 ), that is built in to the popup configuration in the Classic map viewer, and the fields tab in the new map viewer.
R_
Thank you.
How do I check for null values in arcade?
IsEmpty()
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.