Question: how to set default date format in java?
Answer: You can set your default Locale: Locale. setDefault(Locale.US); Alternatively, you can use one of the DateFormat static methods which accepts a Locale to just get the format for the Locale you're interested in.