I have to represent date in different locales.
Some locale standards should show as dd/MM/yyyy
, some - MM/dd/yyyy
.
I know that I can use DateFormat.getDateInstance(DateFormat.SHORT)
to achieve result like I want, but not completely.
DateFormat.getDateInstance(DateFormat.SHORT)
will formate date similar to dd/MM/yy
, while I need dd/MM/yyyy
(YEAR
to show like 2016
, not like 16
).
Is there a way to achieve what I want?