How To Specify a Second Date Pattern in an af:selectInputDate (Doc ID 413462.1)

Last updated on AUGUST 04, 2016

Applies to:

Oracle JDeveloper - Version: 10.1.3.1.0 and later   [Release: and later ]
Information in this document applies to any platform.

Goal

You have created an ADF Faces page including a selectInputDate, say to display SCOTT.EMP.HIREDATE
Your page looks like the following:
(...)
<af:selectInputDate value="#{bindings.Hiredate.inputValue}"
                    label="#{bindings.Hiredate.label}"
                    required="#{bindings.Hiredate.mandatory}">
   <af:validator binding="#{bindings.Hiredate.validator}"/>
   <f:convertDateTime pattern="#{bindings.Hiredate.format}"/>
</af:selectInputDate>
(...)
Note the f:convertDateTime with the pattern attribute that will pick the Date format pattern you specified at the Entity Object level (or View Object).

However, your end-users would like to use a second date pattern.
How can you specify this second pattern?

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms