How many years, months & days passed between to dates

  • How can i calculate

    How many years, months & days passed between to dates

    so result will be (years)(months)(days)?

    for example:

    Dec 31, 2005 -> Jan 1, 2006 -- (0)(0)(1)

    Feb 28, 2006 -> Mar 28, 2006 -- (0)(1)(0)

    Feb 28, 2006 -> Mar 31, 2007 -- (1)(0)(31)

    thanks

  • Make use of Datediff function and its input parameters like dd for day, mm for month etc.

    MJ

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply