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

Change date format

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on February 1 2019 at 15:35 UTC

Hi,

should this work for changing date format from normal Saviynt user end date format to another format in REST connector?

${if(user.enddate!=null){newjava.text.SimpleDateFormat('YYYY/MM/DD hh:mm:ss.000').format(user.enddate)}else{''}

This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.
3 REPLIES 3

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on February 4 2019 at 12:12 UTC

Ok, figured this out and following works ${if(user.enddate!=null){new java.text.SimpleDateFormat('YYYY/MM/DD hh:mm:ss.000').format(user.enddate)}else{''}

This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on May 11 2020 at 14:11 UTC

I need to have this Date Format : YYYY-MM-DD , but this is not working : ${if(user.customproperty8!=null){new java.text.SimpleDateFormat('YYYY-MM-DD').format(user.customproperty8)}else{''}}


Can you please help?


Regards,

Manisha

This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on October 20 2020 at 15:29 UTC

Hi Manisha,


I am using this code for formatting dates and it works, kindly try the same.


new Date().format('MM/dd/yyyy')


Thanks,

Rituparna Das

This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.