DateFormatter transforms am/pm to a. m./p. m. in spanish
DateFormatter transforms am/pm to a. m./p. m. in spanish I am parsing with DateFormatter "Thu Jun 28 14:25:00 GMT+03:00 2018", and it correctly outputs Jun 28, 2018 2:25:00 pm. However when the user switches to Spanish locale the formatter outputs jun. 28, 2018 2:25:00 p. m. Is this normal? here is how I'm parsing the date DateFormatter dateFormatter = new DateFormatter(); dateFormatter.setDateFormatPattern("MMM dd, yyyy hh:mm:ss a"); mCalendar = new GregorianCalendar(mTimeZone); mCalendar.setTime(date); mSimpleDateFormat.applyPattern(pattern); mSimpleDateFormat.setTimeZone(mTimeZone); mSimpleDateFormat.format(mCalendar.getTime()); Apparently this is normal, I just googled for Spanish representation of AM/PM and found a bunch of articles about this. I think this is expected.. Interesting, indeed :) – Gennadii Saprykin Jun 29 at 8:21 ...