Past date check method in Java

Hey folks, I had posted an article on playing with Date long back. Hope that was quite useful to you as it is still for me. Here I have a method that checks if the passed date string is a past date or not. This simple method provides flexibility in whatever form the date string might be, be it mm-dd-yyyy or mm.dd.yyyy or whatever. There may be more alternatives you might find on the web, that you can share with me.

Receive our updates to your inbox

Get more stuff like this
in your inbox

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.