I would to add day number ordinal suffixs 26th, or 1st, or 2nd.
How can I do this in JSF using <f:convertDateTime>? I have tried using pattern attribute with dd, however this only prints the whole number without any ordinal suffix.
I would to add day number ordinal suffixs 26th, or 1st, or 2nd.
How can I do this in JSF using <f:convertDateTime>? I have tried using pattern attribute with dd, however this only prints the whole number without any ordinal suffix.
Unfortunately, this isn't supported by
SimpleDateFormatwhich is being used under the covers by<f:convertDateTime>.You'd need to write a custom EL function for this. Such a function could look like this:
And be used like this:
For remainder, like month of year, just use another output with
<f:convertDateTime>the usual way.