Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SimpleDateFormat formatter = new SimpleDateFormat("MM/dd/yyyy");
- formatter.setLenient(false);
- Calendar cal = Calendar.getInstance();
- Date myDate = formatter.parse("01/02/2014888");
- cal.setTime(myDate);
- if (cal.get(Calendar.YEAR) > endOfTime) {
- // do something about it
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement