How to get Date formatted in locale with specific pattern?
How to get Date formatted in locale with specific pattern? After searching, i was unable to find a solution for this problem. i have this: Long parseDt = Long.valueOf(arrayJson.getJSONObject(i-j).getInt("dt")); // dt is a timestamp Locale locale = ConfigurationCompat.getLocales(Resources.getSystem().getConfiguration()).get(0); String date = new SimpleDateFormat("EEE d MMM", locale).format(new java.util.Date(parseDt * 1000)); So, the pattern works but when i change the phone language, it didn't swap the way it displays, i want to mean if the phone language is French it displays the date like this and it is good for most of the european language: lun 2 juil and if i switch language to English, it displays the date like that: mon 2 july instead of: mon july 2 Do you have any clue to solve this problem respecting my pattern knowing that i want the name of the day with 3 characters maximum? The existing predefined format (like FULL) could work but the name of the day...