top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration

Facebook Login
Site Registration

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

+2 votes
81 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
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...