Java-Updating Calendar

Updating Calendar The set( ) method is used to sets the values for the fields YEAR, MONTH, DAY_OF_MONTH, HOUR, MINUTE, and SECOND. Program Program Source import java.util.Calendar; public class Javaapp { public static void main(String[] args) { Calendar caldr = Calendar.getInstance(); int year = 2000; int month = 5; int dayOfMonth = 6; int hour = 12; int minute = 45; … Read more…

Java-Calendar

Calendar The abstract Calendar class provides a set of methods that allows you to convert a time in milliseconds to a number of useful components. Some examples of the type of information that can be provided are year, month, day, hour, minute, and second. The getInstance( ) method is used to get the calender object for … Read more…