aspose file tools*
The moose likes Beginning Java and the fly likes compare data from ArrayList Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "compare data from ArrayList" Watch "compare data from ArrayList" New topic
Author

compare data from ArrayList

Rajeev Ja
Ranch Hand

Joined: May 06, 2007
Posts: 38
I have some dates in database
i got system date new Date();
i have to check for equality between them and
do some task how can i do
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14153
    
  18

1. Get the dates from the database (for example using JDBC)
2. Use the methods in the classes java.util.Date or java.util.Calendar to compare dates (see the API documentation)


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: compare data from ArrayList