Use
DateTime.Compare()[
^]
Here is a sample code.
string strFromDate = "26/03/2012";
string strToDate = "26/04/2012";
DateTime FromDate = DateTime.ParseExact(strFromDate, "dd/MM/yyyy",null);
DateTime ToDate = DateTime.ParseExact(strToDate, "dd/MM/yyyy", null);
int result = DateTime.Compare(FromDate, ToDate);
if (result < 0)
{
}