Locale frLocale = Locale.FRANCE; // predefined
Locale ukLocale = new Locale("en", "UK"); // English, UK version
DateFormat defaultDateFormatter = DateFormat.getDateInstance(
DateFormat.MEDIUM);
DateFormat frDateFormatter = DateFormat.getDateInstance(
DateFormat.MEDIUM, frLocale);
DateFormat ukDateFormatter = DateFormat.getDateInstance(
DateFormat.MEDIUM, ukLocale);
Date now = new Date();
System.out.println("Default: " + ' " +
defaultDateFormatter.format(now));
System.out.println(frLocale.getDisplayName() + ' " +
frDateFormatter.format(now));
System.out.println(ukLocale.getDisplayName() + ' " +
ukDateFormatter.format(now));