Changes

Jump to: navigation, search

JavaScript Date Object

294 bytes added, 15:18, 8 May 2007
Setting Specific Properties of a Date Object Instance
<tr>
<td>setTime()<td>Sets the time by specifying the number of milliseconds since 00:00:00 on January 1, 1970<td>myDate.setTime(10000)</td>
<tr>
<td>setHours()<td>Sets the hours property of the Date object<td>myDate.setHours(20)</td>
<tr>
<td>setMinutes()<td>Sets the minutes property of the Date object<td>myDate.setMinutes(42)</td>
<tr>
<td>setSeconds()<td>Sets the seconds property of the Date object<td>myDate.setSeconds(59)</td>
</table>

Navigation menu