View Full Version : Sever Date
GurusGuru
08-15-2002, 09:12 AM
How can I show the Sever Date (dd/mm/yyyy) on my page. Normally the date of the computer on which the page is being called can be seen. I want to show the date where the site is hosted. Eg site is hosted in Texas and the page is viewed in Melbourne. I would like to show the Texas'' date and not the date that is in Melborne.
glenngv
08-15-2002, 09:16 AM
you have to use a server-side language like asp, jsp, php, etc...
if you want to store the server-side date in a javascript variable, see sample asp code below:
var today = new Date("<%=Date()%>");
GurusGuru
08-15-2002, 09:40 AM
The site is on a linux server and plain html pages are used. Is there any script that can be copied in the page to retrieve the server date.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.