2 Replies Latest reply: May 31, 2011 10:33 AM by Daniel Crona RSS

    Calculate the difference between today and a future date

    Daniel Crona

      Hello!  I wonder how I can calculate the difference in days between today and a future date.

       

      The dateformat I'm using is YYYY-MM-DD.

       

      So how do I do to caluclate the difference between today, 31 st of May, and for example 17 th of June?

      And if I want to exclude weekends (they should not be calculated) how do I do then?

       

      Thanks in advance