posted 18 years ago
You do not want to use JavaScript to do this since it is using the users time, Are all the clocks in your house correct? My microwave is blinking 12:00. my point is the time may be incorrect, plus you have to deal with timezone issues.
The easiest solution if you are using a Database is to set the column to a default value of the date. Then you do not have to worry. Or just grab the time with a server side language.
Thanx Eric
you are absolutly right .
But suppose ignore timezone issues and i just want to have the timestamp for suppose alertbox.i dont want to use serverside language.
using html and javascript i want to find out the timestamp for the any of the functionality eg. alertbox(what time alertbox appeared and what time i clicked ok on it!).
how should i do that?
can u provide some code or example?
thanx again.
swapnil