Announcement

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

    How to change the DateRange listgrid filter's dateformat

    I have date and datetime column in various listgrids, and if you click those , you get the popup window where you can select the range. Is it possible to change the dateformat of this to European?

    I tried this:
    Code:
    DateRangeItem dateRangeItem = new DateRangeItem("dri", "Date Range");  
    dateRangeItem.setAllowRelativeDates(true);
    dateRangeItem.setDateFormatter(DateDisplayFormat.TOEUROPEANSHORTDATE);
    endDateField.setFilterEditorType(dateRangeItem);
    But then the editor is not in a popup, but is put in the header itself, which doesn't fit. So I just want the same popup as now, but then with european date format.

    Possible?

    (using power edition 2.5, latest nightly)

    #2
    See all the APIs on DateUtil - you can set formats system-wide instead of in each specific place.

    Comment


      #3
      Thanks, works great.

      Comment

      Working...
      X