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

MonthCalendar Date Mask

How can I mask the entry of a date in a MonthCalendar cell type on a griddataboundgrid? My users would like to type a date like 02122005 and have it masked as 02/12/2005. Currently it throws aa error if no sepatators are used.

1 Reply

AD Administrator Syncfusion Team February 8, 2005 04:08 PM UTC

One possible solution is to handle the CurrentCellValidateString method and verify the text is valid with each keystroke. Here is a sample showing this method. The second option is to use our DateTimePicker in a cell and format it. Here is a sample showing this implementation.

Live Chat Icon For mobile
Up arrow icon