Previous Question
I am trying to validate date in server side. When I am trying to pass invalid date to my server side code, it is getting converted to {01/01/0001 00:00:00}.
Works fine when I select proper date.
Here is my code:
When I try to access the date value:
It is returning as null.
Which is quiet strange as I can see my invalid date being passed in the POST request.
Whats wrong with what I am doing, Is there any property which I need to tweek??
Thanks.
I am trying to validate date in server side. When I am trying to pass invalid date to my server side code, it is getting converted to {01/01/0001 00:00:00}.
Works fine when I select proper date.
Here is my code:
<
telerik:RadDatePicker
ID
=
"rdpDob"
runat
=
"server"
AutoPostBack
=
"true"
DateInput-EmptyMessage
=
"MaxDate"
MinDate
=
"01/01/1000"
MaxDate
=
"01/01/3000"
>
When I try to access the date value:
rdpDob.SelectedDate
It is returning as null.
Which is quiet strange as I can see my invalid date being passed in the POST request.
Whats wrong with what I am doing, Is there any property which I need to tweek??
Thanks.