World Time Clock
Can anyone help me with some editable code that will display the server time?
thanks if you can
And let's say the server is two hours ahead of the company's time zone:
OrgCurDtTime = DateAdd("H", -2, Now())
Sorry I have taken so long but this is great.
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.
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;
localHour = Hour(Time())
localHour = localHour-1
dtmHour = localHour
If dtmHour < 12 Then
strAMPM = "AM"
strAMPM = "PM"
Response.Write "Local Time: " & dtmHour & ":" & Minute(Time()) & ":" & Second(Time()) & " " & strAMPM
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..
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
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)