0 votes

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

0 votes
by (277k points)

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

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

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

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 (110 points)
0 votes
1 answer

Hi All, I am currently using the 30 day free trial of Adaxes and seeing if we can use it to achieve our method of user provisioning. I am looking into server-side ... variable value within an SQL query Can this be achieved? Any help is much appreciated, Thanks

asked Feb 1 by Lewis (40 points)
0 votes
1 answer

How I can ignore a part of the lastname in username composition? Example: In the fullname "John da Silva", "da Silva", is the lastname, so, I need ignore the "da " in the composition of username, when I create the new user.

asked May 22 by fgmello (20 points)
3,411 questions
3,108 answers
7,912 comments
545,837 users