2 Replies Latest reply on Dec 31, 2009 7:09 PM by JeffryHouser

    Calculating the time in years between two date var's.

    Herendi Kristóf pál

      Hello to who is reading this post!

       

       

      I have tried to calculate the time in years between two time var's as fallows..

       

      ...((Now.getTime()-SomeDate.getTime())/(365*milliSecondsPerDay));

       

      .. the logic made sense, but the tests showed something else.

       

      Do you have any suggestions how to solve this question.

       

      Thank you in advance!

       

      Herendi Kristóf Pál