Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

get diff btw datetimes two C#

 int totalDays = Convert.ToInt32((DateTime.UtcNow.Date - myDateTime.Date).TotalDays);
 
PREVIOUS NEXT
Tagged: #diff #btw #datetimes
ADD COMMENT
Topic
Name
2+6 =