We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Timepicker does not change the value and does not signal a wrong format.

Hello

When the initial timepicker value is e.g. 07:00 and I enter the wrong format during editing, e.g. 07: XX, the timepicker value does not change. It's still 7:00.

How can I detect that there is incorrect data entered in a component?

The problem is that the value of e.g. 7:15 is also wrong (there is no leading zero).

regards

Maciej


3 Replies

SP Sureshkumar P Syncfusion Team November 14, 2022 10:42 AM UTC

Hi Maciej,

we have planned for the mask support feature at our end, which does not allow the DatePicker component to enter an invalid date. Your requirement can be achieved with the required validation once it has been implemented. 

The feature will be included in any of the upcoming releases. Now you can track the status on the feedback link below. 

Feedback link: https://www.syncfusion.com/feedback/1839

Regards,

Sureshkumar P



MA Maciej replied to Sureshkumar P December 6, 2023 11:19 AM UTC

Hello


Do we have any indication of incorrect format in this control?


Regards

maciej



KP Kokila Poovendran Syncfusion Team December 16, 2023 04:47 PM UTC

Hi Maciej,


We have provided the support for this “Provide mask support to be applied in the input of the DatePicker component” in the above-mentioned release.


Please refer the below documentation, demo to know more about mask configuration in the DatePicker component.


UG Link: https://ej2.syncfusion.com/documentation/datepicker/date-masking/


Demo Link: https://ej2.syncfusion.com/demos/#/material/datepicker/input-mask.html


Release notes: https://ej2.syncfusion.com/documentation/release-notes/19.2.44/?type=all#datepicker


We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.


Loader.
Live Chat Icon For mobile
Up arrow icon