Changes

JavaScript Date Object

295 bytes added, 18:39, 8 May 2007
Setting the Time and Date of the JavaScript Date Object
<td>setSeconds()<td>Sets the seconds property of the Date object<td>myDate.setSeconds(59)</td>
</table>
 
As discussed previously it is important to keep in mind that you are only setting the time and date properties inside the instance of the Date object with these methods. There is no way for a JavaScript script to change the system date and time of the computer on which the browser is running.
== Reading the Date and Time from a JavaScript Date Object ==