Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile 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: 15207
36
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