How to compare if a Date object, for example "2014-01-29 00:00:00" is greater than the current system date, for example System.currentTimeMillis()
in Java?
I'd like to do something like the snippet below, but it did not work:
if (object.getDate().getSeconds() > System.currentTimeMillis())
//do something