Question: Universal date time

G

Guest

Guys,

I have intranet application which our users use in offices all over the
world. How can i retrieve the date and time on their pc and display it on the
screen no matter what country they are in?

Is this possible in .Net?

Thanks

Manny
 
C

clintonG

We have to use client-side date functions that can be found at the
JavaScript FAQ [1] which is one of the best resources on the planet.

It would be a lot more useful to use .NET to build web services that could
aggregate the collection of times from each remote location and display the
collection as a series of clockfaces that could popUp from the system tray.
Anybody in the company, or any business partner the application would be
deployed to could immediately determine the local time of a remote office or
collaborating business partner or customer. I'm actually surprised I haven't
seen something like this yet.

<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/

[1] http://www.irt.org/script/date.htm
 
N

Neo Geshel

clintonG said:
Arjen said:
Manny Chohan,

You can you javascript for this.
http://www.google.com/search?num=20...+javascript+display+current+date+and+time&lr=

Hope this help,
Arjen

We have to use client-side date functions that can be found at the
JavaScript FAQ [1] which is one of the best resources on the planet.

It would be a lot more useful to use .NET to build web services that could
aggregate the collection of times from each remote location and display the
collection as a series of clockfaces that could popUp from the system tray.
Anybody in the company, or any business partner the application would be
deployed to could immediately determine the local time of a remote office or
collaborating business partner or customer. I'm actually surprised I haven't
seen something like this yet.

<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/

[1] http://www.irt.org/script/date.htm

That is actually a rather nifty idea, but I think he is trying to say he
wants it in a web page, not as a series of clocks in the system tray.

What I would do in this case (assuming an on-the-web page solution), is
write variables for each office (in JavaScript) that describe their time
offset from the web server, and then create JavaScript clocks that use
the offsets to determine what time these locations have relative to the
server. As well, the current server time would have to be passed on to
the JavaScript as well (via ASP.NET writing a variable into the JS). You
would not want to use the time on a user's own computer, because a
user's computer might actually be off in terms of its own actual clock
(not everyone uses XP, and not every XP machine may be updating its
clock across the 'net). The only thing that might trip him up is
daylight savings time. Not every country implements it, so if his server
does but some of his offices are in places where they don't, then he can
have a time dysfunction of an hour.

....Geshel
--
**********************************************************************
My reply-to is an automatically monitored spam honeypot. Do not use it
unless you want to be blacklisted by SpamCop. Please reply to my first
name at my last name dot org.
**********************************************************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top