I have already added new form field - time picker. When I'm trying to save form, post value is overridden on "Invalid date".

  <field name="flight_hour" formElement="date" sortOrder="40">
        <argument name="data" xsi:type="array">
            <item name="config" xsi:type="array">
                <item name="source" xsi:type="string">flight</item>
                <item name="options" xsi:type="array">
                    <item name="timeFormat" xsi:type="string">HH:mm</item>
                    <item name="showsTime" xsi:type="boolean">true</item>
                    <item name="timeOnly" xsi:type="boolean">true</item>
            <label translate="true">Flight hour</label>
                <rule name="required-entry" xsi:type="boolean">false</rule>

This is error in my XML or core bug ?

  • Have you found any solution for this? i also faced the same issue. Aug 27, 2019 at 11:19

1 Answer 1


Try to add this code to the <item> option:

<item name="dateFormat" xsi:type="string">yyyy-MM-dd</item>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.