Hi,
To get the date to be returned in a YYYY/MM/DD format you could try
var dateWithoutTime = Left(group.Date, 10);
group.Date is where you would put the field or variable that the date information is stored in. Below is an example of how I used this in my arcade code in AGOL Map Viewer to print out dates from a group in a chronological list.
for (var group in ordered){
// Extract date part from group.Date
var dateWithoutTime = Left(group.Date, 10); // Assuming group.Date is in 'YYYY-MM-DD' format
list += dateWithoutTime + TextFormatting.NewLine;
}
list
I hope this helps 😊