Thursday, April 15, 2010

Get the Time Difference Between Two Date Time in ASP.NET C# VB.Net

In some cases ASP.NET C# VB.Net developers need to find out Time Difference or timediff method or timediff function to get the time between two Time. Here in this article i will show you how you can achieve this:












C# Code:
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
DateTime dtFrom;
DateTime dtTo;

No comments:

Post a Comment