Date Comparision 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 13:44 UTC
Read the original article Hit count: 314

Filed under:
  1. To Date (User Input - format - MM/dd/YYYY)
  2. Current Date.

I need to compare the current date with To Date. Note: currenet date i get using Date currDt = new Date().

I have to display a report only when the toDate is equal to or more than currentDate. How to compare both the date.

[ToDate is a String type i always get in mm/dd/yyyy] Current Date is Date currDt = new Date().

How to compare both the dates. need snippet.

© Stack Overflow or respective owner

Related posts about java