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
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.