Forum Discussion

Victormar's avatar
Victormar
Helper V
2 years ago
Solved

Wrong result using DATESDIFF

Hello community,  I am facing a problem when calculating datediff from when a contract starts up until today, basically I want to know which year number are we in, but the results looks wrong, is it...
  • Idrissshatila's avatar
    Idrissshatila
    2 years ago

    Victormar ,

     

    when you make datesdiff by year, it gets the difference between the year only not the whole date, so it takes that what's the different between 2023 to 2024,it's 1, because 23+1 = 24