how to calculate the date.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fatmir
    New Member
    • Jul 2007
    • 1

    #1

    how to calculate the date.

    i wont to calculate the date for example:

    22.09.1999
    today:02.07.200 7
    --------------------------
    day.month.year( day.month.8 year)

    please help me
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by fatmir
    i wont to calculate the date for example:

    22.09.1999
    today:02.07.200 7
    --------------------------
    day.month.year( day.month.8 year)

    please help me
    I don't understand your question but have a look at the methods in java.util.Grego rianCalendar

    Comment

    • JosAH
      Recognized Expert MVP
      • Mar 2007
      • 11453

      #3
      Originally posted by r035198x
      I don't understand your question but have a look at the methods in java.util.Grego rianCalendar
      I guess the OP wants to calculate the difference between two dates. That
      difference can't be expressed in month/day/year though, e.g. the difference
      between 3/1/2001 and 1/31/2001 is equal to the difference between and 7/30/2001
      and 7/1/2001 measured in days only; the first difference spans a month while
      the second difference does not.

      kind regards,

      Jos

      Comment

      • r035198x
        MVP
        • Sep 2006
        • 13225

        #4
        Originally posted by JosAH
        I guess the OP wants to calculate the difference between two dates. That
        difference can't be expressed in month/day/year though, e.g. the difference
        between 3/1/2001 and 1/31/2001 is equal to the difference between and 7/30/2001
        and 7/1/2001 measured in days only; the first difference spans a month while
        the second difference does not.

        kind regards,

        Jos
        In that case they may use the roll method of the gc to loop until the two dates are equal.

        Comment

        Working...