Where does Date object gets its date

Hi all, i was wondering if it is true that the Date object gets its date from the user’s local time, if so, could the user “hack” the time by adjusting his local time?

so if i wish to display the date that is not dependent on the user’s system’s clock, what may be the most appropriate solution?

Yup. Right from their computer’s clocks. This is why it’s important to validate with server-side script as well. Just in case a tricky rascal wants to try and trick the system somehow.

Tampering is not the only problem. Dates and times can be off because a person doesn’t syncronize their clock, or because they may not know enough about setting their computers timezone.

The time does indeed come from the users local system in the case of Javascript. So yes, if the user tampers with their local time, the time shown in javascript will be tampered as well.

Use some kind of server side scripting like ASP, PHP, Java, etc

ok thanks for the help =)