DateTime inTime = Session["time"]; DateTime outTime = DateTime.Now;//or Get ur out time from ur logic TimeSpan span = outTime.Subtract(inTime); TextBox1.Text = span.Seconds.ToString();
TimeSpan span = outTime - inTime;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)