and more in a single search tool across platforms. Read the announcement here. |
02/26/2024 02:50 AM
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
Solved! Go to Solution.
02/26/2024 09:22 PM
@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
03/13/2024 06:20 AM
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)
03/13/2024 07:02 AM
it is impossible think so check below also same requirement
03/13/2024 07:22 AM
try below
${new Date().plus(547).format(user.startdate)}
03/13/2024 07:35 AM
didn't work
03/13/2024 07:49 AM
it is a user form or application request form?
03/13/2024 07:50 AM
user form request
03/13/2024 07:56 AM
after user onboard only startdate will save right , before how you will add both ?
03/13/2024 08:03 AM - edited 03/15/2024 03:46 AM
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