Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > value comparison of java.sql.Date

Reply
Thread Tools

value comparison of java.sql.Date

 
 
Diphay Z
Guest
Posts: n/a
 
      12-11-2004
Greetings,

I've got a problem here, how to compare the value of two
java.sql.Date types? that is, how to know which one is earlier or
later? Thanks!

 
Reply With Quote
 
 
 
 
Sudsy
Guest
Posts: n/a
 
      12-11-2004
Diphay Z wrote:
> Greetings,
>
> I've got a problem here, how to compare the value of two
> java.sql.Date types? that is, how to know which one is earlier or
> later? Thanks!


A quick trip to the javadocs (always the best place to start!) shows
that java.sql.Date extends java.util.Date and so inherits the before
and after methods. See
<http://java.sun.com/j2se/1.5.0/docs/api/java/util/Date.html#before(java.util.Date)>

--
Java/J2EE/JSP/Struts/Tiles/C/UNIX consulting and remote development.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Comparison of 2 files and generating the output based on comparison Deepu Perl Misc 1 02-07-2011 03:09 PM
Price Comparison Service. Best Deal. Special Coupon atBest-Price-Comparison.com rapee Digital Photography 0 03-14-2008 06:46 AM
how to test value's overflow without comparison starffly@gmail.com C Programming 1 08-14-2006 12:18 PM
value comparison of java.sql.Date Diphay Z Java 0 12-11-2004 02:04 PM
value comparison of java.sql.Date type Diphay Z Java 1 12-11-2004 01:39 PM



Advertisments