Calculation of date
Hello everyone, please could you help me to fix it this formula? I need to count the day beetwen two date for calculate the day of renting our service Example: From 12 April to 13 Aprile = 2 days I used this formula : var start = moment(@Inizio Noleggio - Fine Noleggio); var end = moment(@Data Fine Noleggio); var unit = "days"; end.diff(start,unit) but With this formula the count is wrong because we lose one day of calculation How can I fix the formula ? Thank's

This question is closed.