Display date field in Popup with MM/YYYY format in WebMap

172
1
05-16-2022 12:49 PM
JoseSanchez
Occasional Contributor III

**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

 

0 Kudos
1 Reply
JohannesLindner
MVP Frequent Contributor

Use the Text() function:

 

var before = $feature.LASTUPDATE
var after = Text($feature.LASTUPDATE, "MM/Y")

Console(before)
Console(after)

 

2010-01-19T01:00:00+01:00
01/2010

Have a great day!
Johannes
0 Kudos