5
How to compare if a Date object, for example "2014-01-29 00:00:00" is larger than the date of the current system, for example System.currentTimeMillis()
in Java?
I would like to do something like the section below, but it didn’t work:
if (object.getDate().getSeconds() > System.currentTimeMillis())
//do something
This snippet of code is the answer or an attempt that didn’t work?
– bfavaretto
A failed attempt.
– vs06
Thank you for clarifying!
– bfavaretto