Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Need to modify the format of the attribute user end date as a part of a JSON

Debankita
New Contributor III
New Contributor III

Hi Team,

We have a requirement to send the end date of the user in the format of ('YYYY-MM-dd') as a part of the disable account JSON for an application. But as in the data analyzer we could see the time stamp along with the date in the end date attribute.

Can you please help me in  formatting the attribute by using which I can truncate the time stamp and obtain only the date in the above mentioned format

2 REPLIES 2

rushikeshvartak
All-Star
All-Star

${if(user.enddate!=null){new java.text.SimpleDateFormat('YYYY-MM-dd').format(user.enddate)}else{''}

Refer : https://forums.saviynt.com/t5/general-discussions/change-date-format/m-p/2298#M436 

 


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

Manikanta_S
Saviynt Employee
Saviynt Employee

Hello @Debankita ,

Here is similar requirement on the below post , which might help.


https://forums.saviynt.com/t5/general-discussions/change-date-format/m-p/2298

 

Thanks & Kind Regards,
Manikanta.S