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.
Bookmarks