SyntaxFix
Write A Post
Hire A Developer
Questions
Or using the famous Joda Time library:
DateTime dateTime = new DateTime(); dateTime = dateTime.minusHours(1); Date modifiedDate = dateTime.toDate();