Hello! I would like to use the utc parameter that is described in value references - date/time formatting (https://www.adaxes.com/help/ValueReferences/). The goal is to convert the current date and time to the UTC value. I have tried several combinations like this one down below, but none of them worked correctly:

$currDateTime = "%datetime:format[yyyy-MMMM-dd HH:mm:ss,utc]%"

Could you please indicate whiich would be the right way for using the utc switch?

Thanks, Fabiano

by (20 points)

1 Answer

by (310k points)
0 votes

Hello Fabiano,

To achieve the desired, use the below formatting:

%datetime:format[yyyy-MM-dd HH:mm:ss],,,utc%

Pay attention that all value references must be wrapped into double quotes in all Adaxes scripts.

Related questions

This is only to disable user account

asked Apr 18, 2025 by Erik Lovlie (20 points)
0 votes
1 answer

I'd like to return the litigation hold attribute values if the script returns true. How can I do this?

asked 6 hours ago by GronTron (390 points)
0 votes
1 answer

We have created a workflow for creating user accounts and would like the manager of the new user to be the approver for the account but the account is not created until it is ... to use a parameter as an approver. Is there a powershell way to do this maybe?

asked Jan 24, 2020 by mark.it.admin (2.3k points)
0 votes
1 answer

In the user creation entry I have added a renamed custom attribute called Start Date so that the requester can only request accounts be created past a certain relative ... a limitation of the product or am I looking to implement this requirement incorrectly?

asked May 28, 2021 by manomano (80 points)
0 votes
1 answer

Occationally Service Desk staff need to clear a DNS record when a desktop has been reimaged but is keeping the same name as loses the ability to manage its original DNS ... running in ADAXES. Can I just install the applet on the ADAXES server using powershell?

asked Jan 17, 2023 by stevehalvorson (150 points)
0 votes
1 answer