SyntaxFix
Write A Post
Hire A Developer
Questions
An alternative is Joda-Time.
Use DateTime
DateTime date = new DateTime(new Date()); date.isBeforeNow(); or date.isAfterNow();