Forum Discussion

mohammadyousaf's avatar
mohammadyousaf
Resolver II
4 years ago
Solved

Datediff for same dates.

How do we tackle this issue... datediff calculate 0 where both dates are same.    Date Start Date End 11 October 2021 11 October 2021   DATEDIFF([DATE START], [DATE END], DAY) Result ...
  • Applicable88's avatar
    Applicable88
    4 years ago

    Your welcome, I mean you can try something like this instead

     

    If (startday=enddate), 1 , DATEDIFF([DATE START], [DATE END], DAY))