Oct 13

The Calendar class can be used to do a variety of date arithmetic


Calendar cal = Calendar.getInstance();
cal.setTime(date);
cal.add(Calendar.HOUR, numberOfHours);
date = cal.getTime(); 

written by objects \\ tags: ,


Leave a Reply

You must be logged in to post a comment.