I need to use i18n. I need to use different date
patterns, according of using language.
String of date pattern I also keep in bundle with i18n messages. So I need to <fmt:formatDate/> with with value of pattern getting from i18n bundle. I need something like that, but my example doesn't work:
variable is a date and date.pattern is a pattern string for current language.
I tried different variants, like
or
It both doesn't work. Please, help me!
P.s. I need to use pattern exactly, not dateStyle!