Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

date format in JSON

Rajatlm10
New Contributor III
New Contributor III

Hi, 

i am currently using the GETDATE() to get. its giving me in format. (
2024-06-12 12:24:06.157)

 

I need to get the date in format  " 2035-12-11T19:28:00Z "

the error i am getting is.

Rajatlm10_0-1718191548182.png

Has anyone worked on same scenario before? 

11 REPLIES 11

rushikeshvartak
All-Star
All-Star

Which connector?


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Rajatlm10
New Contributor III
New Contributor III

Please confirm full use case. Is this import or provisioning json


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Rajatlm10
New Contributor III
New Contributor III

@rushikeshvartak 

this is removeAccount JSON. we need to send date in " 2035-12-11T19:28:00Z " format in TermindationDate attribute. 

${Date.parse("yyyy-MM-dd'T'HH:mm:ss'Z'", user.customproperty1)}


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Rajatlm10
New Contributor III
New Contributor III

will it store the value in CP1 and then i need to use CP1 in terminationDate: "user.cp1" ?

Can you please help me with the explanation of this/

Change format / cp as per your needs


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Rajatlm10
New Contributor III
New Contributor III

Rajatlm10_0-1718281778157.png

Error in processWebservicecom.fasterxml.jackson.core.JsonParseException: Unexpected character ('G' (code 71)): was expecting comma to separate Object entries at [Source: {schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"]

Getdate() is mysql method and it will not work.

where is date is stored ? User attributes or you want to use todays date


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Rajatlm10
New Contributor III
New Contributor III

ok, 

I want to pass the current date basically. 

Its not stored anywhere. 

${Date.parse("yyyy-MM-dd'T'HH:mm:ss'Z'", new Date())}


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.