jQuery in Action, 2nd edition*
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "compare data from ArrayList" Watch "compare data from ArrayList" New topic

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: 14074

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
It is sorta covered in the JavaRanch Style Guide.
subject: compare data from ArrayList
Similar Threads
Submitting a form on pressing Enter key
java calendar object set as null
Dates as String
converting to date format
Getting current GMT date as Date object