Hello! I am struggling to write an Arcade expression that will symbolize point features based on the time value in a datetime field. I want to group the features by either AM or PM. I've tried extracting the time values using Time() which returns them as text ("08:00:00" or "12:00:00"), and then using Find() to recognize the text and return another text ("AM" or "PM"), but it's still not working (see code below):
Solved! Go to Solution.
You can use the Text function's formatting parameter "A" to return "AM" or "PM" for symbolizing the points.
Here's an example. These points are labeled with the Collection time field (FishDate in my data) and I use this expression to symbolize them.
Text($feature.FishDate, 'A')
When you click Run in the Expression editor, it uses the first record in the dataset to evaluate the code. Clicking Done will run the code on the entire dataset (or at least the first thousand or so records) to build the symbology
You can use the Text function's formatting parameter "A" to return "AM" or "PM" for symbolizing the points.
Here's an example. These points are labeled with the Collection time field (FishDate in my data) and I use this expression to symbolize them.
Text($feature.FishDate, 'A')
When you click Run in the Expression editor, it uses the first record in the dataset to evaluate the code. Clicking Done will run the code on the entire dataset (or at least the first thousand or so records) to build the symbology
you're amazing!! it worked, thank you so much.