{"json_modified": "2015-04-18T03:28:23.509043", "slug": "Web/JavaScript/Reference/Global_Objects/Date/toLocaleFormat", "tags": ["\u975e\u6807\u51c6", "Date"], "locale": "zh-CN", "title": "Date.prototype.toLocaleFormat()", "translations": [{"title": "Date.prototype.toLocaleFormat()", "url": "/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleFormat", "tags": ["Reference", "R\u00e9ference", "Date", "R\u00e9f\u00e9rence", "prototype", "JavaScript", "Non-standard", "Method"], "summary": "The non-standard toLocaleFormat() method converts a date to a string using the specified formatting. Intl.DateTimeFormat is an alternative to format dates in a standards-compliant way. See also the newer version of Date.prototype.toLocaleDateString().", "localization_tags": [], "locale": "en-US", "last_edit": "2015-04-15T13:50:33", "review_tags": []}, {"title": "Date.prototype.toLocaleFormat()", "url": "/fr/docs/Web/JavaScript/Reference/Objets_globaux/Date/toLocaleFormat", "tags": ["Reference", "R\u00e9ference", "Date", "R\u00e9f\u00e9rence", "prototype", "JavaScript", "Non-standard", "Method"], "summary": "La m\u00e9thode non-standard toLocaleFormat() convertit une date en une cha\u00eene de caract\u00e8res, en utilisant le formatage renseign\u00e9. DateTimeFormat est une alternative standardis\u00e9e. Voir aussi la nouvelle version de Date.prototype.toLocaleDateString().", "localization_tags": [], "locale": "fr", "last_edit": "2015-04-16T04:07:51", "review_tags": []}, {"title": "Date.prototype.toLocaleFormat()", "url": "/ru/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleFormat", "tags": ["Reference", "Date", "R\u00e9f\u00e9rence", "prototype", "JavaScript", "Non-standard", "Method"], "summary": "\u041d\u0435\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u043c\u0435\u0442\u043e\u0434 toLocaleFormat() \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442 \u0434\u0430\u0442\u0443 \u0432 \u0441\u0442\u0440\u043e\u043a\u0443, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0435 \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435. \u041e\u0431\u044a\u0435\u043a\u0442 Intl.DateTimeFormat \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0439 \u0441\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0430\u043c\u0438 \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043e\u0439 \u043f\u0440\u0438 \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u0434\u0430\u0442. \u0422\u0430\u043a \u0436\u0435 \u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u043d\u043e\u0432\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u043c\u0435\u0442\u043e\u0434\u0430 Date.prototype.toLocaleDateString().", "localization_tags": [], "locale": "ru", "last_edit": "2014-10-31T03:29:45", "review_tags": []}], "modified": "2015-04-18T03:28:22", "label": "Date.prototype.toLocaleFormat()", "localization_tags": ["inprogress"], "url": "/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleFormat", "last_edit": "2015-04-18T03:28:18", "summary": "\u975e\u6807\u51c6\u65b9\u6cd5\u00a0toLocaleFormat()\u00a0\u6309\u7279\u5b9a\u7684\u683c\u5f0f\u5c06\u4e00\u4e2a\u65e5\u671f\u8f6c\u6362\u6210\u4e00\u4e2a\u5b57\u7b26\u4e32\u3002\u00a0Intl.DateTimeFormat \u662f\u7b26\u5408\u6807\u51c6\u7684\u683c\u5f0f\u5316\u65e5\u671f\u7684\u66ff\u4ee3\u65b9\u6cd5\u3002\u53e6\u89c1\u66f4\u65b0\u7684(newer)\u7248\u672c\u7684\u00a0Date.prototype.toLocaleDateString()\u65b9\u6cd5.", "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() 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 Function.caller Function.displayName [Translate] Function.length Function.name Function.prototype \u65b9\u6cd5 Function.prototype.apply() Function.prototype.bind() Function.prototype.call() Function.prototype.isGenerator() Function.prototype.toSource() Function.prototype.toString() Object \u5c5e\u6027 Object.prototype.__count__ [Translate] Object.prototype.__noSuchMethod__ [Translate] Object.prototype.__parent__ Object.prototype.__proto__ Object.prototype.constructor \u65b9\u6cd5 Object.prototype.__defineGetter__() Object.prototype.__defineSetter__() Object.prototype.__lookupGetter__() Object.prototype.__lookupSetter__() [Translate] Object.prototype.hasOwnProperty() Object.prototype.isPrototypeOf() Object.prototype.propertyIsEnumerable() Object.prototype.toLocaleString() Object.prototype.toSource() Object.prototype.toString() Object.prototype.unwatch() [Translate] Object.prototype.valueOf() Object.prototype.watch()"}, {"id": ".E8.AF.AD.E6.B3.95", "title": "\u8bed\u6cd5"}, {"id": ".E5.8F.82.E6.95.B0", "title": "\u53c2\u6570"}, {"id": ".E6.8F.8F.E8.BF.B0", "title": "\u63cf\u8ff0"}, {"id": ".E7.A4.BA.E4.BE.8B", "title": "\u793a\u4f8b"}, {"id": "Using_toLocaleFormat()", "title": "Using toLocaleFormat()"}, {"id": ".E8.85.BB.E5.AD.90(Polyfill)", "title": "\u817b\u5b50(Polyfill)"}, {"id": ".E6.A0.87.E5.87.86", "title": "\u6807\u51c6"}, {"id": ".E5.85.BC.E5.AE.B9.E6.80.A7", "title": "\u517c\u5bb9\u6027"}, {"id": ".E5.8F.A6.E8.A7.81", "title": "\u53e6\u89c1"}], "id": 147456, "review_tags": []}