remove time from date in Arcade?

2604
4
07-15-2021 08:53 AM
Labels (1)
anonymous55
Occasional Contributor II

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
4 Replies
jcarlson
MVP Esteemed 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
anonymous55
Occasional Contributor II

This one doesn't give me the date

AhmadrezaMaddi_0-1626365069238.png

 

0 Kudos
jcarlson
MVP Esteemed Contributor

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

- Josh Carlson
Kendall County GIS
RandyMcGregor3
Occasional Contributor III

Is there a way to get a 'Date' value that does not have time included? 

Thank you,

Randy McGregor