Hello,
I'm using the ToUTC() function on a date field that fixes my date field, however, it returns the date in the format of "Mon Jan 03 2022 06:22:24 GMT-0600 (Central Standard Time)". This presents a lot of excess information, and I was wondering if there's a way to change the format so that it is in the format of 1/3/22 06:22:24.
Thanks in advance.
try this:
var callMonth = Text(ToUTC($feature.CallDateTime),'MM/DD/YY HH:MM:SS')
return callMonth
I substituted in the global from the map, it returns a blank string.
var callMonth = Text(ToUTC($datapoint["USER_DateTime"]),'MM/DD/YY HH:MM:SS')