3 Replies Latest reply on Feb 20, 2007 6:43 PM by fernando_jmt

    Date

    konikoni

      I want to displa follow output on the page: Friday, 19.01.2007

        • 1. Re: Date
          fernando_jmt

          I know, I can add the full name in a separately session variable, but this will not part of the identity as well.

          • 2. Re: Date
            fernando_jmt

            Sorry, my last message was my bad to add it to this topic ;-)

            • 3. Re: Date
              fernando_jmt

               

              "KoniKoni" wrote:
              I want to displa follow output on the page: Friday, 19.01.2007


              Well, if you wanna display the current date, you only need to do this:

              <h:outputText value="#{currentDate}">
               <f:convertDateTime pattern="EEEE, dd.MM.yyyy"/>
              </h:outputText>
              


              If you wannna display the Date property of any backing bean, you sould do this:

              <h:outputText value="#{myBackingBean.birthDate}">
               <f:convertDateTime pattern="EEEE, dd.MM.yyyy"/>
              </h:outputText>