How can I add duration field value to a date/time field value?

shradz
Kilo Explorer

Hi Guys,

How can I add a duration field value   to a date/time field?

Last working day= resigned date(date/time field)+ notice period days (duration field value). I am writing an on-change request and passing values to a script include to calculate last working day.

Note: Last working day should be autopopulated and it should be in the date format.

e.g if resigned date is 1/10/2016

        notice period days =30 days

        last working day should be 30/10/2016

find_real_file.png

Thanks

shraddha

10 REPLIES 10

jas101
Tera Expert

If anyone was able to get this working (via onChange client script as opposed to a business rule) please let me know on this recently added post:

https://community.servicenow.com/community?id=community_question&sys_id=6aa6a486db0a57c058dcf4621f9619d5

Thanks!