Wrox Programmer Forums
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 15th, 2005, 05:22 AM
Authorized User
 
Join Date: Oct 2004
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to kiwibey
Default DateTime Problem. Please help me......

hi programmer,
i have facing a problem to view the correct time from different location.
for example, my server location is at malaysia, but my user is from UK, so if i use now() in asp. then the time show at the uk user is malaysia time. so how can i do for if UK user then the system will automatically appear the correct time to UK user.
is it have any code the browse show the time follow the use own pc time and date ?
so i no need worry about the wrong time for other user in different location.
please help me...
thank you very much

Regards
bey

 
Old June 16th, 2005, 01:09 AM
Friend of Wrox
 
Join Date: Sep 2004
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to sureshbabu Send a message via Yahoo to sureshbabu
Default

Hi,
   You can get the PC time from the javascript function as followss..


var d = new Date()
alert(d.GetTime())...

you can use this value any where in the program..
Thanks
Suresh

 
Old June 16th, 2005, 01:28 AM
Registered User
 
Join Date: Jun 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi sureshbabu

I did test you code snippet but the correct seems to be

var d = new Date();
alert(d);

the html that i wrote is for checkin this is simple

<html>
<Script : javascript>
function GetTimeTest()
{

var d = new Date();
alert(d);
}
</script>
<body onload="GetTimeTest();">
</body>
</html>


 
Old June 17th, 2005, 02:24 AM
Authorized User
 
Join Date: Oct 2004
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to kiwibey
Default

Suresh & aryasheel,
the code you given is very useful for me....
Thanks a lots....

Regards,
bey






Similar Threads
Thread Thread Starter Forum Replies Last Post
DateTime Problem kwilliams ASP.NET 2.0 Professional 1 March 12th, 2008 01:36 PM
DateTime Problem!!! Pls help cmualo SQL Server 2000 4 August 17th, 2007 03:08 AM
Problem with DateTime and Textbox MAKO C# 5 July 28th, 2006 10:09 AM
Datetime problem hastikeyvan Dreamweaver (all versions) 16 January 25th, 2006 11:58 AM
DateTime problem acko Pro VB Databases 7 October 31st, 2004 05:53 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.