top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

In WindowsPhone:How to find Difference between two dates c#?

+2 votes
266 views
In WindowsPhone:How to find Difference between two dates c#?
posted Mar 19, 2015 by Saravanan

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+2 votes

In windowsphone, especially in calender applications we may need to find difference between two dates like this

DateTime date1= DateTime.Now;
DateTime date2= DateTime.Now.AddDays(-1);
double diff = (date1 - date2).TotalDays;
answer Mar 20, 2015 by Jdk
...