Getting Difference of Two Dates in Metro Apps - by Shubham Srivastava
Today we will create an application in a Metro style to determine the difference between two dates in hours. To implement it we will use two Textboxes for entering the dates and the conversion code will be executed in a button click event. In the code behind file MainPage.xaml we will use the DateTime class and some properties like Year, Month etc.
In the following we are including the entire code of the XAML file and the code behind file to create this mini application.
Read More from: Original Source
Post Contributed by: Kunal Chowdhury
Kunal is the Site Admin and Contributor of Silverlight-Zone. He is a Software Engineer, Microsoft Silverlight MVP, Code Project Mentor and a Code Project MVP. He is also an active Author in SilverlightShow.net and a speaker in various community events. He works on Microsoft Platform and very passionate about Silverlight technology. He started his career in 2007 and achieved various awards during his professional life.
He shares his findings in his personal blog: http://www.kunal-chowdhury.com and he also tweets at: @kunal2383.