Hi Guys,
I have two date fields StartDate & EndDate & one text field called Days, I would like to calculate the number of days by subtracting StartDate from EndDate & would like to set that as value of Days field on create screen itself.
I would need Days = EndDate - StartDate
I am trying to do it using scriptrunner, can someone suggest how can I achieve that ?
Thanks
Hi @Vishal
Here's a sample code you could try with
https://library.adaptavist.com/entity/calculate-the-difference-between-two-dates
Thanks,
Pramodh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.