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

Create User Form : set ENDDATE = STARTDATE + 18 MONTHS

ray
Regular Contributor
Regular Contributor

Hello,

i want to set the default value for the enddate to be as startdate + 18 months FROM USER CREATE FORM.

or enddate = currentDate + 18 months

do anyone know if it is possible please? if yes please share examples

 

Regards,

Ray

9 REPLIES 9

Raghu
Regular Contributor III
Regular Contributor III

@ray  you can use below date format in plus in count of days pass it.

example  : ${new Date().plus(365).format('MM-dd-yyyy')}

 format = currentdate+365 days we are using


Thanks,
Raghu
If this reply answered your question, Please Accept As Solution and hit Kudos.

ray
Regular Contributor
Regular Contributor

is there a way to set enddate = startdate + nb of days?

my startdate has always the today date value by default : ${new Date().format("MMM dd, yyyy")}

my goal is to set the enddate based on the startdate if it is changed.
I tried the one below nthg worked

${startdate.plus(547).format('MM-dd-yyyy')}

${startdate.plus(547)}

${startdate}.plus(547)

Raghu
Regular Contributor III
Regular Contributor III

it is impossible think so check below also same requirement

https://forums.saviynt.com/t5/identity-governance/limiting-enddate-to-90-days-based-on-start-date/m-...

 


Thanks,
Raghu
If this reply answered your question, Please Accept As Solution and hit Kudos.

Raghu
Regular Contributor III
Regular Contributor III

try below

${new Date().plus(547).format(user.startdate)}


Thanks,
Raghu
If this reply answered your question, Please Accept As Solution and hit Kudos.

ray
Regular Contributor
Regular Contributor

didn't work

ray_0-1710340280099.png

 

Raghu
Regular Contributor III
Regular Contributor III

it is a user form or application request form?


Thanks,
Raghu
If this reply answered your question, Please Accept As Solution and hit Kudos.

ray
Regular Contributor
Regular Contributor

user form request

Raghu
Regular Contributor III
Regular Contributor III

after user onboard only startdate will save right , before how you will add both ?


Thanks,
Raghu
If this reply answered your question, Please Accept As Solution and hit Kudos.

ray
Regular Contributor
Regular Contributor

now i have this user form

startdate (Date de Début du Contrat) value is set by default : ${new Date().format("MMM dd, yyyy")}

endDate (Date de Fin de Contrat)value is set by default:{new Date().plus(547).format("MMM dd, yyyy")}

I want the endDate to be linked to startdate -> if the user change the startdate during user creation, i want that the endDate value change according to the new date set in startdate. the rule must be : endDate = startdate + 547 days

 

Thank you for your help

Ray