Below are revisions for this snippet.

compare Date yyyy-mm-dd only





Syndication

Revision Revison 1
If you only want to compare yyyy-mm-dd you can use the java.sql.Date class, the valueOf method does the trick. It's perfectly safe as the sql Date class is a subclass of the Date class.

Check out the docs here for more detail.

enjoy