how to ompare the date and time is lesst then the other in c# code example
Example: how to compare datetime in c#
DateTime.Compare(datetime1, datetime2);
/*
datetime1 before datetime2 = -ve
datetime1 equal datetime2 = 0
datetime1 after datetime2 = +ve
*/