Hi
To compare two date their is a DateTime.Compare Method
You can use this method as shown below:
int value= DateTime.Compare(DateTime date1,DateTime date2)
if return value is Zero then both date are same i.e. (date1==date2)
if return value is Less than zero then date1 is is earlier than date2 i.e. (date1<date2)>
if return value is Greater than zero then date1 is later than date2 i.e.(date1>date2)
I hope this will help you....