value comparison of java.sql.Date type

Discussion in 'Java' started by Diphay Z, Dec 11, 2004.

  1. Diphay Z

    Diphay Z Guest

    Greeting,

    How to compare two values of java.sql.Date type? That is, how to know
    which date is earlier or later? Thanks!
    Diphay Z, Dec 11, 2004
    #1
    1. Advertising

  2. Diphay Z

    VisionSet Guest

    "Diphay Z" <> wrote in message
    news:...
    > Greeting,
    >
    > How to compare two values of java.sql.Date type? That is, how to know
    > which date is earlier or later? Thanks!


    boolean isAfter =
    mySqlDateOrAnySubclassOfDateForThatMatter.after(anotherDate);

    also before(myDate)

    --
    Mike W
    VisionSet, Dec 11, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Peter Grison

    Date, date date date....

    Peter Grison, May 28, 2004, in forum: Java
    Replies:
    10
    Views:
    3,251
    Michael Borgwardt
    May 30, 2004
  2. Diphay Z
    Replies:
    1
    Views:
    767
    Sudsy
    Dec 11, 2004
  3. Diphay Z
    Replies:
    0
    Views:
    406
    Diphay Z
    Dec 11, 2004
  4. Replies:
    5
    Views:
    98,598
    vongeuca
    May 4, 2011
  5. Lew
    Replies:
    0
    Views:
    467
Loading...

Share This Page