Source Code : Calendar Manipulation for I18N (Internationalization)
Java Is Open Source Programming Language You Can Download From Java and Java Libraries From http://www.oracle.com.
Click Here to download
We provide this code related to title for you to solve your developing problem easily. Libraries which is import in this program you can download from http://www.oracle.com.
Click Here or search from google with Libraries Name you get jar file related it
Calendar Manipulation for I18N (Internationalization)

import java.text.*;
import java.util.*;
public class CalendarManipulation {
public static void main(String s[]) {
Calendar cal = Calendar.getInstance();
DateFormat df = DateFormat.getDateTimeInstance(DateFormat.FULL,
DateFormat.MEDIUM);
// print out the current date and time
System.out.println(df.format(cal.getTime()));
// add 8 days to the current date and print out the date and time
cal.add(Calendar.DATE, 8);
System.out.println(df.format(cal.getTime()));
// subtract 4 hours from the time and print out the date and time
cal.add(Calendar.HOUR, -4);
System.out.println(df.format(cal.getTime()));
// add 12 hours to the current time and print out the date and time
cal.add(Calendar.AM_PM, 1);
System.out.println(df.format(cal.getTime()));
// add another 12 hours and print out the date and time
cal.add(Calendar.AM_PM, 1);
System.out.println(df.format(cal.getTime()));
}
}
Thank with us