After struggling with the GregorianCalendar, Date and DateFormat classes for a while, here's a simple wrapper to replace the now deprecated date.getLocalizedString():
public static String getLocaleDate(Date date, Locale locale) {
return SimpleDateFormat.getDateInstance(
SimpleDateFormat.SHORT,locale).format(date).toUpperCase();
}
Subscrever:
Enviar feedback (Atom)
Sem comentários:
Enviar um comentário