Date Comparison using Java

Posted by Lakshman on Stack Overflow See other posts from Stack Overflow or by Lakshman
Published on 2010-05-11T13:36:38Z Indexed on 2010/05/11 14:14 UTC
Read the original article Hit count: 244

Filed under:
|

I have two dates:

  1. toDate (user input in MM/dd/yyyy format)
  2. currentDate (obtained by new Date())

I need to compare the currentDate with toDate. I have to display a report only when the toDate is equal to or more than currentDate. How can I do that?

© Stack Overflow or respective owner

Related posts about java

Related posts about date