ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2017 www.aspforums.com. All rights reserved.How to show count down timer like Flipkart, Snapdeal, Amazon using C# and VB.Net in ASP.Net<p>Hi <a class="username" rel="Maheshspmc"> Maheshspmc</a>,</p> <p>Use the below method.</p> <p><span style="text-decoration: underline;">C#</span></p> <pre class="brush: csharp">public string CalculateTimeDifference(DateTime startDate, DateTime endDate) { int days = 0; int hours = 0; int mins = 0; int secs = 0; string final = string.Empty; if (endDate &gt; startDate) { days = (endDate - startDate).Days; hours = (endDate - startDate).Hours; mins = (endDate - startDate).Minutes; secs = (endDate - startDate).Seconds; final = string.Format(&#34;{0} days {1} hours {2} mins {3} secs&#34;, days, hours, mins, secs); } return final; }</pre> <p><span style="text-decoration: underline;">VB.Net</span></p> <pre class="brush: vb">Public Function CalculateTimeDifference(startDate As DateTime, endDate As DateTime) As String Dim days As Integer = 0 Dim hours As Integer = 0 Dim mins As Integer = 0 Dim secs As Integer = 0 Dim final As String = String.Empty If endDate &gt; startDate Then days = (endDate - startDate).Days hours = (endDate - startDate).Hours mins = (endDate - startDate).Minutes secs = (endDate - startDate).Seconds final = String.Format(&#34;{0} days {1} hours {2} mins {3} secs&#34;, days, hours, mins, secs) End If Return final End Function</pre> <p>&nbsp;</p>http://www.aspforums.net/Threads/746380/How-to-show-count-down-timer-like-Flipkart-Snapdeal-Amazon-using-C-and-VBNet-in-ASPNet/http://www.aspforums.net/Threads/746380/How-to-show-count-down-timer-like-Flipkart-Snapdeal-Amazon-using-C-and-VBNet-in-ASPNet/Mon, 09 Jan 2017 06:35:59 GMTHow to show count down timer like Flipkart, Snapdeal, Amazon using C# and VB.Net in ASP.Net<p>Thank u Mr.Dharmendr</p>http://www.aspforums.net/Threads/746380/How-to-show-count-down-timer-like-Flipkart-Snapdeal-Amazon-using-C-and-VBNet-in-ASPNet/http://www.aspforums.net/Threads/746380/How-to-show-count-down-timer-like-Flipkart-Snapdeal-Amazon-using-C-and-VBNet-in-ASPNet/Mon, 09 Jan 2017 07:44:56 GMT