Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Date Item format dd-MMM-yyyy

    Hi,

    Is there a way to display the date with the format : dd-MMM-yyyy ?
    because I don't see this format available on DateDisplayFormat object.

    Thanks :-)

    #2
    is there a way to do that via setEditorValueFormatter?

    Comment


      #3
      Please, I really need to use this specific format... :(
      Any idea will be welcome

      Comment


        #4
        Code:
        DateItem dateItem = new DateItem();
        dateItem.setDateFormatter(DateDisplayFormat.TOEUROPEANSHORTDATE);
        should handle it.

        Comment


          #5
          Thanks for the reply but the : DateDisplayFormat.TOEUROPEANSHORTDATE gives the following format:
          DD/MM/YYYY.
          Example: 4/11/2005

          In fact I need to have something like : 02-NOV-2011.

          Based on DateDisplayFormat, I don't think it's possible to have this format.

          Comment


            #6
            Take a look at DateUtil.class - there are setShortDateDisplayFormatter() and setDateInputFormatter() methods, which you can use to provide any desired Date format.
            HTH
            MichalG

            Comment


              #7
              thank you :)

              Comment

              Working...
              X