import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
public class Test {
public static void main(String[] args) {
DateFormat localeDateFormat;
Locale[] locales = { Locale.CANADA, Locale.FRANCE, Locale.GERMANY,
Locale.US, Locale.JAPAN };
for (Locale locale : locales) {
localeDateFormat = DateFormat.getDateInstance(DateFormat.LONG,
locale);
System.out.println("Date Format : "
+ locale.getDisplayCountry()
+ " :: "
+ ((SimpleDateFormat) DateFormat.getDateInstance(
DateFormat.LONG, locale)).toPattern() + " :: "
+ localeDateFormat.format(new Date()));
}
}
}