34,333
edits
Changes
→Creating a JavaScript Date Object
<td>''yyyy, mm, dd''<td>Initializes the date object to the specified month, day and year<td>var myDate = new Date (10, 27, 2007, 10, 20)</td>
</table>
== Setting Specific Element of a Date Object Instance ==
Once an instance of a date object has been created it is often necessary to change specific properties (such as the time or the year) of that object. AS one might expect JavaScript includes a number of methods in the Date object to facilitate this: