{"json_modified": "2015-04-17T05:08:39.262837", "slug": "Web/JavaScript/Reference/Global_Objects/Date/setYear", "tags": [], "locale": "zh-CN", "title": "Date.prototype.setYear()", "translations": [{"title": "Date.prototype.setYear()", "url": "/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setYear", "tags": ["Reference", "Date", "R\u00e9f\u00e9rence", "prototype", "JavaScript", "Deprecated", "Method"], "summary": "The setYear() method sets the year for a specified date according to local time. Because setYear() does not set full years (\"year 2000 problem\"), it is no longer used and has been replaced by the setFullYear() method.", "localization_tags": [], "locale": "en-US", "last_edit": "2014-10-29T05:44:01", "review_tags": []}, {"title": "setYear", "url": "/pl/docs/Web/JavaScript/Referencje/Obiekty/Date/setYear", "tags": ["Dokumentacja_JavaScript", "JavaScript", "Dokumentacje", "Wszystkie_kategorie"], "summary": "", "localization_tags": [], "locale": "pl", "last_edit": "2014-05-31T00:08:37", "review_tags": []}, {"title": "Date.prototype.setYear()", "url": "/fr/docs/Web/JavaScript/Reference/Objets_globaux/Date/setYear", "tags": ["Reference", "Date", "R\u00e9f\u00e9rence", "prototype", "JavaScript", "Deprecated", "Method"], "summary": "", "localization_tags": [], "locale": "fr", "last_edit": "2015-01-17T13:55:09", "review_tags": []}, {"title": "Date.prototype.setYear()", "url": "/ru/docs/Web/JavaScript/Reference/Global_Objects/Date/setYear", "tags": ["Reference", "Date", "R\u00e9f\u00e9rence", "prototype", "JavaScript", "Deprecated", "Method"], "summary": "", "localization_tags": [], "locale": "ru", "last_edit": "2014-10-29T05:54:43", "review_tags": []}], "modified": "2015-04-17T05:08:37", "label": "Date.prototype.setYear()", "localization_tags": ["inprogress"], "url": "/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Date/setYear", "last_edit": "2015-04-17T05:08:15", "summary": "The setYear() method sets the year for a specified date according to local time. Because setYear does not set full years (\"year 2000 problem\"), it is no longer used and has been replaced by the setFullYear method.", "sections": [{"id": "Quick_Links", "title": "JavaScript \u6807\u51c6\u5e93 Date \u5c5e\u6027 Date.prototype \u65b9\u6cd5 Date.UTC() Date.now() Date.parse() Date.prototype.getDate() Date.prototype.getDay() Date.prototype.getFullYear() Date.prototype.getHours() Date.prototype.getMilliseconds() Date.prototype.getMinutes() Date.prototype.getMonth() Date.prototype.getSeconds() Date.prototype.getTime() Date.prototype.getTimezoneOffset() Date.prototype.getUTCDate() Date.prototype.getUTCDay() Date.prototype.getUTCFullYear() Date.prototype.getUTCHours() Date.prototype.getUTCMilliseconds() Date.prototype.getUTCMinutes() Date.prototype.getUTCMonth() Date.prototype.getUTCSeconds() Date.prototype.getYear() Date.prototype.setDate() Date.prototype.setFullYear() Date.prototype.setHours() Date.prototype.setMilliseconds() Date.prototype.setMinutes() Date.prototype.setMonth() Date.prototype.setSeconds() Date.prototype.setTime() Date.prototype.setUTCDate() [Translate] Date.prototype.setUTCFullYear() [Translate] Date.prototype.setUTCHours() [Translate] Date.prototype.setUTCMilliseconds() [Translate] Date.prototype.setUTCMinutes() [Translate] Date.prototype.setUTCMonth() [Translate] Date.prototype.setUTCSeconds() [Translate] Date.prototype.setYear() Date.prototype.toDateString() Date.prototype.toGMTString() Date.prototype.toISOString() Date.prototype.toJSON() Date.prototype.toLocaleDateString() Date.prototype.toLocaleFormat() [Translate] Date.prototype.toLocaleString() Date.prototype.toLocaleTimeString() Date.prototype.toSource() [Translate] Date.prototype.toString() Date.prototype.toTimeString() Date.prototype.toUTCString() Date.prototype.valueOf() \u7ee7\u627f Function \u5c5e\u6027 Function.arguments Function.arity caller Function.displayName [Translate] length name prototype \u65b9\u6cd5 Function.prototype.apply() bind call isGenerator Function.toSource Function.prototype.toString() Object \u5c5e\u6027 Object.prototype.__count__ [Translate] Object.prototype.__noSuchMethod__ [Translate] __parent__ __proto__ constructor \u65b9\u6cd5 Object.prototype.__defineGetter__() Object.prototype.__defineSetter__() Object.prototype.__lookupGetter__() Object.prototype.__lookupSetter__() [Translate] Object.prototype.hasOwnProperty() isPrototypeOf propertyIsEnumerable Object.prototype.toLocaleString() Object.toSource Object.prototype.toString() Object.prototype.unwatch() [Translate] Object.prototype.valueOf() watch"}, {"id": "Summary", "title": "Summary"}, {"id": "Syntax", "title": "Syntax"}, {"id": "Parameters", "title": "Parameters"}, {"id": "Description", "title": "Returns"}, {"id": "Examples", "title": "Examples"}, {"id": "Example:_Using_setYear", "title": "Example: Using setYear"}, {"id": "Specifications", "title": "Specifications"}, {"id": "Browser_compatibility", "title": "Browser compatibility"}, {"id": "See_Also", "title": "See also"}], "id": 119197, "review_tags": []}