Thanks a lot. I added date property to the DateTimePicker's value and tested. It is working now
Following is the code:
String Today_Date_String = DateTime.Now.Date.ToShortDateString().ToString();<br>DateTime Process_Start_date = dtt.Value.Date; |
|
//I set the DateTimePicker's Value to Today's date |
|
if (Process_Start_date > Today_Date) |
{ |
return false; |
} |
Thank you again
Cheers,
Rajeeshun
Violence never brings Peace. Non-Violence never brings solutions