Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
425
How to set WebDateTimeEdit's value to null when date entered is invalid?
posted

I am using WebdateTimeEdit control in my web form, min and max dates are set for this control. When a date less than min date is entered, the date in the control is changed to min date; When a date larger than max date is entered, the date in the control is replaced with max date. Is there any way to set the date to null when invalid date is entered. Thanks.

I tried to use setValue() and setDate() in ValueChanged event, neither works. Please advice.  Thanks