I have list with two date fields. It is also containing time information. It is based on leave request so I need to calculate hour basis for half a day leave.
If user enters 8/1/2016 08:00 AM
as start date and 8/1/2016 12:30 PM
as end date then I need to show 0.5
days.
If user enters 8/1/2016 08:00 AM
as start date and 9/1/2016 12:30 PM
as end date then I need to show 1.5
days.