Announcement

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

    [ISSUE] error message for Date Editor in listgrid using European format

    Hello,

    I have a grid with the following field :

    Code:
    ListGridField winDateField = new ListGridField(WIN_DATE_NAME, WIN_DATE_LABEL, 85); 
            winDateField.setType(ListGridFieldType.DATE);
            winDateField.setDateFormatter(DateDisplayFormat.TOEUROPEANSHORTDATE);
    
            DateItem dateItem = new DateItem();
            dateItem.setInputFormat("D/M/Y");
            dateItem.setDisplayFormat(DateDisplayFormat.TOEUROPEANSHORTDATE);
            
            winDateField.setEditorType(dateItem);
    So it is a date field and it is editable.
    The issue is the following :

    the validator display the message "the value must be a date" whatever value I enter in the field (even by selecting it through the date pick calendar)

    The issue is due to the format. When I comment the format lines I have no issue

    Regards

    #2
    Set your input format "DMY" not "D/M/Y".

    Comment

    Working...
    X