Try with
DateTime.Compare Method[
^]
Or else try something like this:
string s = "2012-10-01";
string t = "2012-10-16";
DateTime theDateA = DateTime.Parse(s);
DateTime theDateB = DateTime.Parse(t);
if (theDateB > theDateA)
{
}
..and for more look
here[
^], and also similar threads on
CP Search[
^]