|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
How to show local time and date
Well I am not interested in getting time and date from users computer for my web site because sometime it does not give the right information. So do you have any other idea how I can get local time and date (approximately accurate) for my web site. Necessary code will be very helpfull. Thank you.
|
|
#2
|
||||
|
||||
|
Hi
I think you've not got a response because your question is a bit confusing. Presuming you want to display your server's local date and time, use a PHP or ASP script. PHP uses time(), ASP uses Date() or Now() MK |
|
#3
|
|||
|
|||
|
I think he/she's asking for a way to display local time of whoever's looking at the page without using their computer's time settings. But that's not possible, as you don't really have a way to know where they are. If you wanted to get complicated you could probably figure out some stuff with tracing their IP/ISP but even that doesn't promise 100% locational accuracy.
My advice would be to just use the user's clock, or the server clock (and state which timezone the server's in). |
![]() |
| Viewing: ASP Free Forums > Programming > HTML, JavaScript And CSS Help > How to show local time and date |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|