Announcement

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

    DateRangeItem display format

    It seems to me that date format on DateRangeItem cannot be changed. I've tried using something like setDateDisplayFormat(DateDisplayFormat.TOEUROPEANSHORTDATE ) and other formats but I always get date formatted as MM/dd/yyyy.

    Am I miss something?

    #2
    Hello,

    I am also having the same problem, if you find a fix, please post!!

    Regards
    Jeni

    Comment


      #3
      Hello,

      In addition to my previous post we are using smartgwt 2.3.

      The code running is as follows:

      final DateRangeItem rangeItem = new DateRangeItem("orderDate");
      rangeItem.setValue(dateRange);
      rangeItem.setWidth("*");
      rangeItem.setShowTitle(false);
      rangeItem.setAllowRelativeDates(true);
      rangeItem.setDateDisplayFormat(DateDisplayFormat.TOEUROPEANSHORTDATE);
      rangeItem.setDateFormatter(DateDisplayFormat.TOEUROPEANSHORTDATE);

      All dates are showing as MM/dd/yyyy rather than dd/MM/yyyy which is what I would expect and is what we need!

      Any help will be appreciated.

      Thanks
      Jen

      Comment


        #4
        same issue for me...
        another thing is translation of words like "today, tomorrow, etc"

        would you mind giving a hand on this? at least a previos solution thanks!

        Comment


          #5
          I have similar problem.
          DateRangeItem should be fully localized. It's regarding to button's translation, date format.
          It will be wonderful if I have possibility to add icons to the buttons (ok, cancel, clear)

          Comment


            #6
            The 'dateDisplayFormat' was indeed broken for dateRangeItems. We've now fixed this - the fix will show up in nightly builds going forward.

            In terms of localization see the i18n package (SmartGWTMessages interface).
            The titles for the various "relative" dates (today, yesterday etc) are governed by the 'relativeDateItem_todayTitle' etc.

            Comment

            Working...
            X