Click HERE to see how Saviynt Intelligence is transforming the industry. |
04/12/2022 01:03 PM
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{''}
Solved! Go to Solution.
04/12/2022 02:15 PM
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{''}
04/12/2022 02:15 PM
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
04/12/2022 02:15 PM
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