Hi,
I am using the DateTimeFormat and it's working fine for English, however,
in Arabic it's showing the exact value as shown for the English locale!
Here's the code:
public static String getFormattedDate(String date) {
final DateTimeFormat formatter =
DateTimeFormat.getFormat("yyyy-MM-dd'T'HH:mm:ss");
try {
final Date parsedDate = formatter.parse(date);
return
DateTimeFormat.getFormat(DateTimeFormat.PredefinedFormat.DATE_MEDIUM).format(parsedDate);
} catch (IllegalArgumentException e) {
e.printStackTrace();
return date;
}
}
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.