I would like to have somewhere at my site a php function where it will display the users time (local time). Just like the time he has on right side at the taskbar (in windows)
I tried:
<? date(d-m-Y); ?> but this displays the server time and not the user's local time...
PHP is a server side technology...
If you want to display the clients time on your pages, then perhaps it would be best if you used a client side language - I'm pretty sure you can find a javascript one without too much hassle...
you have to use javascript. <SCRIPT> // hours : minutes current_date = new Date(); document.write(current_date.getHours() + ':' + current_date.getMinutes()); </SCRIPT>
Ok thanks. It works now. The only problem is that when it's 12:00 o' clock it's displays something like this:
12:0 and not 12:00