Click HERE to see how Saviynt Intelligence is transforming the industry. |
01/04/2024 07:34 AM
Hi Team,
We have a requirement where we need to validate a condition which checks the ATTRIBUTE selected date has a particular day of the week.
Scenario1 : If Selected Attribute Date is 2024-01-05 (Jan 5th, 2024) which is FRIDAY then The Validation Condition should check this and allow the request creation.
Scenario2: If Selected Attribute Date is 2024-01-03 (Jan 5th, 2024) which is WEDNESDAY then The Validation Condition should check this and deny the request creation.
We have used below and doesnot work.
${SimpleDateFormat("EEE").format(MANStart) = 'Fri'}
${MANStart.getDay() = 5}
Regards,
Hitesh Sapkota
01/05/2024 02:19 AM
Hi @h_sapkota
Please check the error in the logs. It seems this function might not be supported/correct one.
Also please try with == in equality condition
${MANStart.getDay() == 5}
Regards,
Dhruv Sharma