We want to supply Year in Custom action from the field called registration Date which is in format "YYYY-MM-DD".
Inside AJO which fx function we should use to extract year from the same.
For example, RegistrationDate ="2022-07-08" , we want to use field as StartYear having value "2022".
Please assist.
Solved! Go to Solution.
Views
Replies
Total Likes
Try this:
substr(toString(#{ExperiencePlatform.ProfileFieldGroup.profile.person.RegistrationDate}),0,3)
Make sure you have the appropriate path for the registration date attribute.
Views
Replies
Total Likes
Try this:
substr(toString(#{ExperiencePlatform.ProfileFieldGroup.profile.person.RegistrationDate}),0,3)
Make sure you have the appropriate path for the registration date attribute.
Views
Replies
Total Likes
This should be substr(toString(#{ExperiencePlatform.ProfileFieldGroup.profile.person.RegistrationDate}),0,4)
Views
Replies
Total Likes