mozilla

Compare Revisions

Date.prototype.getYear()

Change Revisions

Revision 417299:

Revision 417299 by Sheppy on

Revision 480773:

Revision 480773 by Thibaut on

Title:
Date.getYear
Date.getYear
Slug:
Web/JavaScript/Reference/Global_Objects/Date/getYear
Web/JavaScript/Reference/Global_Objects/Date/getYear
Content:

Revision 417299
Revision 480773
t73      To take into account years before and after 2000, you shoult73      To take into account years before and after 2000, you shoul
>d use <code><a href="/en-US/docs/JavaScript/Reference/Objects/Dat>d use <code><a href="/en-US/docs/JavaScript/Reference/Global_Obje
>e/getFullYear">getFullYear</a></code> instead of <code>getYear</c>cts/Date/getFullYear">getFullYear</a></code> instead of <code>get
>ode> so that the year is specified in full.>Year</code> so that the year is specified in full.

Back to History