Use the javascript Date object to return a string containing the current day
of week, date, time and timezone (eg UTC+1000) of the client system. Parse
it to obtain the bits you need. If you need it server side, you'll have to
find a way to submit the value (eg in a hidden form parameter) back to the
server. If you want to be sneaky about it you can use remote scripting to
send it back to your server script.
Put the following in your page to see the result:
<SCRIPT LANGUAGE="JavaScript">
var TimeNow = new Date();
document.write("The time now is: " + TimeNow);
</SCRIPT>
Regards: Ayudh
+----------------------------------------------------------------+
| SOAP is the glue! Hook up your server directly to your bank. |
| Connect to VeriPay xServ, the Australian Payments Web Service. |
| Reliable, Secure, FAST: http://www.xilo.com/xserv |
+----------------------------------------------------------------+
----- Original Message -----
From: "Gavin Irons" <[EMAIL PROTECTED]>
To: "CFAussie Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, July 13, 2004 8:26 PM
Subject: [cfaussie] Timezone function
> Is there any way I can determine what timezone a user is in?
>
> Also can I get the time from the user's brower (ie not the server time).
>
> Thanks
>
> Gavin Irons
>
>
>
>
> ---
> You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to
[EMAIL PROTECTED]
> Aussie Macromedia Developers: http://lists.daemon.com.au/
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/