Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How get date from host server?

Status
Not open for further replies.

alfredoalvarado

Programmer
Sep 3, 2002
2
VE
How can i get the date and time from the server where my page is hosted?

There are some function to get the date and time from local machine (client) but i need to get the time from the server where is my web site hosted
 
Try this:

<%
servertime = time()
serverdate = date()
%>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top