Can I get ${__from:date} in UTC using the format I want?


I’m trying to get the __from and __to variables in a particular format: YYYY-MM-DD-HHmmss. I also need them to be in UTC timezone. I seem to be able to get either one or the other, but not both.

I can get the format I want like this, but it is converted to my browser/local time (UTC+8:00):


and I can get it in UTC with this, but then the formatting is different:


As shown in this screenshot:

I could write some javascript to get the exact string I want, but is there a way I can do it with just the variables?


I have the same issue. ${__to:date:iso:YYYY-MM-DD-HHmmss} with iso format does not even work for me