Bruno
01-13-2003, 11:11 AM
Hi All
Can anyone help me with some editable code that will display the server time?
thanks if you can
Bruno
Can anyone help me with some editable code that will display the server time?
thanks if you can
Bruno
|
Click to See Complete Forum and Search --> : World Time Clock Bruno 01-13-2003, 11:11 AM Hi All Can anyone help me with some editable code that will display the server time? thanks if you can Bruno Bullschmidt 01-13-2003, 10:33 PM And let's say the server is two hours ahead of the company's time zone: OrgCurDtTime = DateAdd("H", -2, Now()) Bruno 01-22-2003, 10:22 AM Hi Guys Sorry I have taken so long but this is great. Thanks loads Bruno Bruno 02-06-2003, 02:09 PM Hi Bullschmidt I have tested the code and played with it to try and get it to do what I want it to...but I cant! Need a bit more help please, I want the hour:minute:seconds to be displayed only - no date - but be able to add/deduct hours and minutes. I have Checked out the Chili Asp tutorials and tried using some functions from it but just basically haven't got a clue. Would appreciate the assistance very much. Thanks Bruno Bruno 02-07-2003, 10:26 AM Hi All After much F$%king around I have finally done what I set out to do and even though this is probably very simple it is the First of my ASP I have ever done; <% Dim localHour localHour = Hour(Time()) localHour = localHour-1 Dim dtmHour dtmHour = localHour If dtmHour < 12 Then strAMPM = "AM" Else strAMPM = "PM" End If Response.Write "Local Time: " & dtmHour & ":" & Minute(Time()) & ":" & Second(Time()) & " " & strAMPM %> Purpose; This script will take the server time, Allow you to add/subtract time from the hour (localHour) and will check whether its AM or PM and then write it to the page.. Final Comment; You may think...even know, this is simple but I dont care, it was my first script (admittedly I did have some help) AND I am Honoured...neigh Proud to share it with anyone else. Thanks chaps for your assistance Bruno webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |