How to set the Due date of RITM and Task same as variable selected in Service Catalog

Naresh_5120
Tera Contributor

Hi Community,

 

I have created a termination form in Service Catalog item , when a termination form is filled by users, there is filed called Effective date (variable is name effective_date) select for the actual termination date. I want to show the same date as RITM Due date and Task due date, however it is not happening currently.

 

Can someone suggestion how can I achieve the output.

 

Effective Date Selected is - 

Naresh9_0-1674622412470.png

 

RITM Date is showing is

Naresh9_1-1674622448607.png

 

Task Due date is showing is

Naresh9_2-1674622489183.png

 @Ankur Bawiskar I saw your other post where you have provided solution but that thread is closed, therefore tagging here for help!

11 REPLIES 11

Hi Ankur,

 

It is setting 1 day before the actual effective date

 

Naresh9_0-1675148537932.png

 

Hi Ankur,

 

with this script i am able to populate date only on RITM Due date not in Catalog task Due date.

current.setValue('due_date', new GlideDateTime(current.variables.effective_date) + ' 23:59:59');