Win a copy of The Java Performance Companion this week in the Performance 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
Pie
Posts: 15367
40
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