Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to compare datetime in c#

DateTime.Compare(datetime1, datetime2);
/*
datetime1 before datetime2 = -ve
datetime1 equal datetime2 = 0
datetime1 after datetime2 = +ve
*/
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #compare #datetime
ADD COMMENT
Topic
Name
2+7 =