getTime(): The getTime() method returns a date/time of the calendar in a Date object. Date objects are stored as an offset in milliseconds. The general form of the getTime() method is as follows:

Date getTime()

e.g. System.out.println(calendar.getTime());

setTime(): The setTime() method sets the current calendar’s date/time from the value of the specified date. The general form of the setTime() method is as follows:

void setTime(Date date)

e.g. calendar.setTime(date2);

  • Share/Bookmark

uCertify (Nov, 25, 2009), uCertify a leading practice test provider for IT certification exams. Now days uCertify announces its Thanksgiving discount offer. On this Thanksgiving go and buy your desired certification prepkit get amazing discounts. You can also get huge discount on multiple prepkit purchase apart form the thanksgiving discount. Our Thanksgiving sale begins on Wednesday, Nov 25th and ends on Nov 30th! that is six days of discount offering. Use the discount code “GOBBLE” and get up to 35% when you buy 2 or more PrepKits PLUS get an additional $15 off all orders over $100.

  • Share/Bookmark