Sep 06 2022 02:12 AM
Hello!
It is necessary to make a rule that will work in a certain range of time.
e.g. every day from 21:00 to 00:00 or from 21:00 to the next morning 06:00.
I tried to do it through the transformation of time into a string, it did not work
The date looks like this:
Sep 06 2022 04:34 AM
@Dimitry36 What is the issue you are running into? Using
todatetime('2022-09-06T23:04:01Z')
converts the string into the UTC time of '9/6/2022, 11:04:01.000 PM'
Sep 06 2022 05:04 AM
Sep 06 2022 05:40 AM
Solution@Dimitry36 You would need to do something like this to get the UTC equivalent of 0800 today
let dt = now();
print todatetime(strcat(datetime_part("month", dt),'/',datetime_part("day", dt),'/',datetime_part("year", dt), ' 08:00:00.000 AM'))
Sep 06 2022 06:16 AM
Sep 06 2022 06:35 AM
Sep 07 2022 12:45 AM