Through the form i am getting two values like
Start datetime = \'01/12/2013 12:00:00 AM\' and End datetime = \'02/12/2013 12:00:00 AM\'.
//StartDate & EndDate two dates if (StartDate < EndDate) // code if you just want the dates, and not the time if (StartDate.Date < EndDate.Date) // code