Rob wrote:
I would like to display the difference between the logging time
[Session("start"] and the current time [now]. In hours minutes and
seconds, I have tried a couple of things but all I see is gobbledy
gook.
Any guidance would be appreciated.
Assuming, in global.asa, you have:
Sub Session_onstart()
Session("start") = Now
End Sub
In your asp page, you would calculate the difference in seconds:
dim timelogged
timelogged = datediff("s",cdate(Session("start")), Now)
Then calculate the hours, min. etc from that:
dim hourslogged
hourslogged=timelogged\3600
I'll leave the rest as "an exercise for the student".
Let us know if you need help with the rest. I think there is an article
about doing this at aspfaq, but I'm not sure.
Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.