remove time from date in Arcade?

328
3
07-15-2021 08:53 AM
Labels (1)
anonymous
Occasional Contributor

Hello,

I am trying to label symbols in AGOL and I wrote this arcade but I can't remove time from date?
any suggestion.

"Owner of Scooter" + " : "+
DomainName($feature,"vehicle_company")
+" Inspection Date : "+
Date($feature.CreationDate)

AhmadrezaMaddi_0-1626364286993.png

 

 

0 Kudos
3 Replies
jcarlson
MVP Notable Contributor

Try converting the date to a string using the Text function.

Text($feature.CreationDate, 'Y-MM-DD')

 

- Josh Carlson
Kendall County GIS
0 Kudos
anonymous
Occasional Contributor

This one doesn't give me the date

AhmadrezaMaddi_0-1626365069238.png

 

0 Kudos
jcarlson
MVP Notable Contributor

The function is "Text", not "Date".

- Josh Carlson
Kendall County GIS