
eninv (eninv) asked a question.
Can someone help me with expression for changing the YYYY-DD-MM to MM-DD-YYYY
I have workday as source of profile for Hiredate. workday feed information in the format of YYYY-DD-MM. I want to change to my format. Please refer any document or expression for this

Hi @eninv (eninv) , Thank you for reaching out to the Okta Community!
The following article discussed something similar but not quite the same:
https://support.okta.com/help/s/article/convert-string-hiredate-of-format-yyyy-mm-dd-to-unix-timestamp-format-using-expression-language?language=en_US
Please check the Okta Expression Language time functions for anything that might help your use case:
https://developer.okta.com/docs/reference/okta-expression-language/#time-functions
If my answer helped, remember to mark it as best to increase its visibility for other members of the Okta Community who might have the same questions as you.
Hope my answer helps!
--------------------------------
Ask the experts about Okta Privileged Access
String.join("-",String.substring(appuser.Hiredate,8,9),String.substring(appuser.Hiredate,5,6),String.substring(appuser.Hiredate,0,3)
Here is documentation on the String.join and String.substring Okta Expression Language functions.
https://developer.okta.com/docs/reference/okta-expression-language/#string-functions
You'll need to verify that appuser.Hiredate is a valid and appropriate field in your Profile Editor Mapping for Workday.