Showing two different date format in the same screen

Hi
I have a screen (Jmix 2.1.1) where there is a date field in TextField and a date field as a column in the dataGrid. The column value is calculated (3 days before) from the textField when user enters the “Start date plan” textField in the screen image below. As you may have noticed, those are showing two differet date formats. Note that, I haven’t used any date formatting code. How can I manage it?

image

Hello Mortoza!

Thank you for reporting the problem! It seems that XML loader for TypedDatePicker overrides default dateFormat by empty value. I’ve created an issue: TypedDatePicker does not apply default date format · Issue #2571 · jmix-framework/jmix · GitHub

You can workaround it by the following code:

<datePicker id="datePicker" dateFormat="msg:///dateFormat"/>