How to use unsupported Locale in Java
问题 As part of Internationalisation, got a requirement to support few countries like Antigua and Barbuda - ISO3166 code - AG & Dominican Republic - ISO3166 code - DO Locale loc = new Locale("en", "AG"); DateFormat df1 = DateFormat.getDateInstance(DateFormat.SHORT, loc); System.out.println("Short format: " + df1.format(new Date())); Java will display date in format mm/dd/yy, where as date format in those countries are dd/mm/yy. Is there any way we can achieve the pattern dd/mm/yy? Even ICU4J