add the date and time to site - host in different time zone

Hello...How do I add the date and time to my site.  Please note the server host is in PST and I am in EST so i need to add 3 hours if for date and time; or get time externally some where.  Platform = Win IIS and can run ASP ASP.net and PHP.

As you may tell from the topic area (Front Page), I'm no web master.  Thanks!!! riley
Ripley419Asked:
Who is Participating?
 
coreybryantCommented:
You can use JS - this would pull the time from the local computer of the user (you in the EST or me in the PDT)

-Corey
0
 
rcmbCommented:
This is in asp:

The local time is <%=Hour(Now()) +3 %>:<%=Minute(Now())%>:<%=Second(Now())%>

displays 24 hour time

<%
Dim newHour, AMPM, localHour
localHour = Hour(Now()) + 3

If localHour > 12 Then
      newHour = localHour - 12
      AMPM = "PM"
Elseif localHour <= 12 Then
      newHour = localHour
      AMPM = "AM"
End if
%>
The local time is <%= newHour %>:<%=Minute(Now())%>:<%=Second(Now())%> <%=AMPM%>

RCMB
0
 
EirmanChief Operations ManagerCommented:
0
 
EirmanChief Operations ManagerCommented:
I think my reply deserves a share of the points - The provided link gives a full solution to the question. The solution is aimed at Frontpage users.
0
 
VenabiliCommented:
It is a month and a half after any comment here and is not a direct answer but a tutorial :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.