SimpleDateFormatのLocale指定
海外向けのシステムを開発する際に、SimpleDateFormatで指定されたLocaleの日付フォーマットを行う方法です。
private void format(String format) { DateFormat dateFormat = new SimpleDateFormat(format,Locale.UK); String ret =dateFormat.format(new Date()); System.out.println("[format:"+format+"] "+ret); }