Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

compare data from ArrayList

 
Rajeev Ja
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15272
37
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic