Hi Asad,
Look at the TimeSpan example:
Private Sub Page_Load _
(ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles MyBase.Load
If Not IsPostBack Then
viewstate("starttime") = Now
Else
Dim tmspan As TimeSpan
tmspan = Date.Now.Subtract _
(CType(viewstate("starttime"), DateTime))
Label1.Text = tmspan.TotalSeconds.ToString
End If
End Sub
"Asad" <as*******@hotmail.com> wrote in message
news:fd**************************@posting.google.c om...
Hello,
I need to know how I can calculate the number of seconds between two
time stamps, e.g. if I have the following (using ToLongTimeString)
8:28:21 PM
and
9:02:33 PM
How can I find out the number of seconds elapsed between the two
times?
Thanks in advance.
Asad