{"id":135323,"date":"2026-07-21T13:45:33","date_gmt":"2026-07-21T07:45:33","guid":{"rendered":"https:\/\/rcl-radio.ru\/?p=135323"},"modified":"2026-07-21T13:45:33","modified_gmt":"2026-07-21T07:45:33","slug":"%d1%80%d0%b0%d0%b1%d0%be%d1%82%d0%b0-%d1%81-%d0%b4%d0%b0%d1%82%d0%b0%d0%bc%d0%b8-%d0%b2-javascript-%d1%82%d0%b8%d0%bf%d0%b8%d1%87%d0%bd%d1%8b%d0%b5-%d0%be%d1%88%d0%b8%d0%b1%d0%ba%d0%b8-%d0%b8-%d0%bf","status":"publish","type":"post","link":"https:\/\/rcl-radio.ru\/?p=135323","title":{"rendered":"\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u0434\u0430\u0442\u0430\u043c\u0438 \u0432 JavaScript: \u0442\u0438\u043f\u0438\u0447\u043d\u044b\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 \u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f (JavaScript)"},"content":{"rendered":"<div class=\"Standalone-Chat Standalone-Chat_gradientTop\">\n<div class=\"AliceChat-Scrollable AliceChat-Scrollable_noHeader AliceChat-Scrollable_withShareButton alice-scrollbar\" data-testid=\"alice-chat\" data-touch-scrollable=\"true\" data-touch-chat=\"true\">\n<div class=\"AliceChat-Column\">\n<div class=\"AliceChat\">\n<div class=\"AliceChat-Resizer\">\n<div class=\"AliceChat-MessageLast\">\n<div class=\"AliceChat-Message\">\n<div id=\"29c9954d-d55a79b-85eda8b4-c686773\" class=\"Message\">\n<div class=\"MessageBubble-Container MessageBubble-Container_type_text MessageBubble-Container_marginTop\" data-testid=\"message-bubble-container\">\n<div class=\"MessageBubble\" data-testid=\"message-bubble\">\n<div class=\"AliceTextBubbleAnimated\">\n<div class=\"MarkdownText MarkdownText_no-bottom-margin\">\n<div class=\"FuturisMarkdown FuturisMarkdown_katex\">\n<p>\u041e\u0431\u044a\u0435\u043a\u0442\u00a0<code class=\"CodeInlined\">Date<\/code>\u00a0\u0432 JavaScript \u2014 \u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c, \u043d\u043e \u0432 \u043d\u0451\u043c \u0441\u043a\u0440\u044b\u0442\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043d\u0435\u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0445 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0435\u0439. \u041d\u0438\u0436\u0435 \u2014 \u0447\u0430\u0441\u0442\u044b\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 \u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u044b \u0438\u0445 \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c, \u0441 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u043c\u0438 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c\u0438 \u043a\u043e\u0434\u0430.<\/p>\n<hr \/>\n<h2>\u041e\u0448\u0438\u0431\u043a\u0430 1: \u0432\u044b\u0437\u043e\u0432\u00a0<code class=\"CodeInlined\">Date()<\/code>\u00a0\u0431\u0435\u0437\u00a0<code class=\"CodeInlined\">new<\/code><\/h2>\n<p><strong>\u0412 \u0447\u0451\u043c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430.<\/strong>\u00a0\u0415\u0441\u043b\u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c\u00a0<code class=\"CodeInlined\">const d = Date()<\/code>, \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u043d\u0435 \u043e\u0431\u044a\u0435\u043a\u0442 \u0434\u0430\u0442\u044b, \u0430 \u0441\u0442\u0440\u043e\u043a\u0430 \u0441 \u0442\u0435\u043a\u0443\u0449\u0438\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c. \u0422\u0430\u043a\u043e\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043d\u0435\u043b\u044c\u0437\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0439 \u0438\u043b\u0438 \u0438\u0437\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u044f \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432.<\/p>\n<div class=\"CodeBlock CodeBlock_overflow_visible CodeBlock_highlight\">\n<div class=\"CodeBlock-StickyWrapper\">\n<div class=\"CodeBlock-Header\">\n<div class=\"CodeBlock-HeaderTitle\">js<\/div>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 14px;\">const d1 = <span style=\"color: #0066cc;\">Date<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\nconsole.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">typeof<\/span> d1<span style=\"color: #66cc66;\">)<\/span>;        <span style=\"color: #808080; font-style: italic;\">\/\/ \"string\"<\/span>\r\nconsole.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span>d1 <span style=\"color: #0066cc;\">instanceof<\/span> <span style=\"color: #0066cc;\">Date<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ false<\/span><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<p><strong>\u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435.<\/strong>\u00a0\u0412\u0441\u0435\u0433\u0434\u0430 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 \u0447\u0435\u0440\u0435\u0437\u00a0<code class=\"CodeInlined\">new Date()<\/code>:<\/p>\n<div class=\"CodeBlock CodeBlock_overflow_visible CodeBlock_highlight\">\n<div class=\"CodeBlock-StickyWrapper\">\n<div class=\"CodeBlock-Header\">\n<div class=\"CodeBlock-HeaderTitle\">js<\/div>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 14px;\">const d2 = <span style=\"color: #000000; font-weight: bold;\">new<\/span> <span style=\"color: #0066cc;\">Date<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\nconsole.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">typeof<\/span> d2<span style=\"color: #66cc66;\">)<\/span>;        <span style=\"color: #808080; font-style: italic;\">\/\/ \"object\"<\/span>\r\nconsole.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span>d2 <span style=\"color: #0066cc;\">instanceof<\/span> <span style=\"color: #0066cc;\">Date<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ true<\/span><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u043c\u0435\u0442\u043a\u0430 (timestamp \u0432 \u043c\u0438\u043b\u043b\u0438\u0441\u0435\u043a\u0443\u043d\u0434\u0430\u0445), \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435\u00a0<code class=\"CodeInlined\">Date.now()<\/code>\u00a0\u2014 \u044d\u0442\u043e \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u0438 \u043f\u043e\u043d\u044f\u0442\u043d\u0435\u0435, \u0447\u0435\u043c\u00a0<code class=\"CodeInlined\">new Date().getTime()<\/code>.<\/p>\n<div class=\"CodeBlock CodeBlock_overflow_visible CodeBlock_highlight\">\n<div class=\"CodeBlock-StickyWrapper\">\n<div class=\"CodeBlock-Header\">\n<div class=\"CodeBlock-HeaderTitle\">js<\/div>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 14px;\">const ts = <span style=\"color: #0066cc;\">Date<\/span>.<span style=\"color: #006600;\">now<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ \u0447\u0438\u0441\u043b\u043e (ms \u0441 1970-01-01 UTC)<\/span><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<hr \/>\n<h2>\u041e\u0448\u0438\u0431\u043a\u0430 2: \u043c\u0435\u0441\u044f\u0446\u044b \u0432 \u0447\u0438\u0441\u043b\u043e\u0432\u043e\u043c \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u0435 \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0442\u0441\u044f \u0441 0<\/h2>\n<p><strong>\u0412 \u0447\u0451\u043c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430.<\/strong>\u00a0\u041f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0434\u0430\u0442\u044b \u0447\u0435\u0440\u0435\u0437 \u0447\u0438\u0441\u043b\u0430\u00a0<code class=\"CodeInlined\">new Date(year, month, day)<\/code>\u00a0\u043c\u0435\u0441\u044f\u0446 \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442\u0441\u044f \u043a\u0430\u043a \u0438\u043d\u0434\u0435\u043a\u0441: 0 \u2014 \u044f\u043d\u0432\u0430\u0440\u044c, 11 \u2014 \u0434\u0435\u043a\u0430\u0431\u0440\u044c. \u042d\u0442\u043e \u0447\u0430\u0441\u0442\u044b\u0439 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u043d\u0430 \u043e\u0434\u0438\u043d \u043c\u0435\u0441\u044f\u0446.<\/p>\n<div class=\"CodeBlock CodeBlock_overflow_visible CodeBlock_highlight\">\n<div class=\"CodeBlock-StickyWrapper\">\n<div class=\"CodeBlock-Header\">\n<div class=\"CodeBlock-HeaderTitle\">js<\/div>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 14px;\"><span style=\"color: #808080; font-style: italic;\">\/\/ \u041e\u0448\u0438\u0431\u043e\u0447\u043d\u043e: \u0445\u043e\u0442\u0435\u043b\u0438 15 \u0444\u0435\u0432\u0440\u0430\u043b\u044f 2024, \u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u043c\u0430\u0440\u0442<\/span>\r\nconst wrong = <span style=\"color: #000000; font-weight: bold;\">new<\/span> <span style=\"color: #0066cc;\">Date<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">2024<\/span>, <span style=\"color: #cc66cc;\">2<\/span>, <span style=\"color: #cc66cc;\">15<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\nconsole.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span>wrong.<span style=\"color: #006600;\">toLocaleDateString<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">'ru-RU'<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ 15.03.2024<\/span><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<p><strong>\u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435.<\/strong>\u00a0\u0423\u0447\u0438\u0442\u044b\u0432\u0430\u0439\u0442\u0435 \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0435:\u00a0<code class=\"CodeInlined\">monthIndex = monthNumber - 1<\/code>.<\/p>\n<div class=\"CodeBlock CodeBlock_overflow_visible CodeBlock_highlight\">\n<div class=\"CodeBlock-StickyWrapper\">\n<div class=\"CodeBlock-Header\">\n<div class=\"CodeBlock-HeaderTitle\">js<\/div>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 14px;\">const monthNumber = <span style=\"color: #cc66cc;\">2<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ \u0444\u0435\u0432\u0440\u0430\u043b\u044c<\/span>\r\nconst correct = <span style=\"color: #000000; font-weight: bold;\">new<\/span> <span style=\"color: #0066cc;\">Date<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">2024<\/span>, monthNumber - <span style=\"color: #cc66cc;\">1<\/span>, <span style=\"color: #cc66cc;\">15<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\nconsole.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span>correct.<span style=\"color: #006600;\">toLocaleDateString<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">'ru-RU'<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ 15.02.2024<\/span><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<hr \/>\n<h2>\u041e\u0448\u0438\u0431\u043a\u0430 3: \u043f\u0430\u0440\u0441\u0438\u043d\u0433 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u0445 \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0445 \u0444\u043e\u0440\u043c\u0430\u0442\u043e\u0432<\/h2>\n<p><strong>\u0412 \u0447\u0451\u043c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430.<\/strong>\u00a0\u041a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u00a0<code class=\"CodeInlined\">new Date(string)<\/code>\u00a0\u0447\u0443\u0432\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u0435\u043d \u043a \u0444\u043e\u0440\u043c\u0430\u0442\u0443 \u0441\u0442\u0440\u043e\u043a\u0438. \u041f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0440\u0430\u0437\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u043c\u0435\u0436\u0434\u0443 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430\u043c\u0438, \u0430 \u043d\u0435\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 \u0444\u043e\u0440\u043c\u0430\u0442\u044b \u043c\u043e\u0433\u0443\u0442 \u0434\u0430\u0432\u0430\u0442\u044c\u00a0<code class=\"CodeInlined\">Invalid Date<\/code>\u00a0\u0438\u043b\u0438 \u043d\u0435\u0432\u0435\u0440\u043d\u044b\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b.<\/p>\n<div class=\"CodeBlock CodeBlock_overflow_visible CodeBlock_highlight\">\n<div class=\"CodeBlock-StickyWrapper\">\n<div class=\"CodeBlock-Header\">\n<div class=\"CodeBlock-HeaderTitle\">js<\/div>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 14px;\"><span style=\"color: #808080; font-style: italic;\">\/\/ \u041d\u0435\u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e: \u043c\u043e\u0436\u0435\u0442 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0438\u043b\u0438 \u0434\u0430\u0432\u0430\u0442\u044c \u0440\u0430\u0437\u043d\u044b\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b<\/span>\r\nconst d = <span style=\"color: #000000; font-weight: bold;\">new<\/span> <span style=\"color: #0066cc;\">Date<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">'15\/02\/2024'<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\nconsole.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span>d.<span style=\"color: #0066cc;\">toString<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438<\/span><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<p><strong>\u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435.<\/strong>\u00a0\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 ISO 8601:\u00a0<code class=\"CodeInlined\">YYYY-MM-DD<\/code>\u00a0\u0438\u043b\u0438\u00a0<code class=\"CodeInlined\">YYYY-MM-DDTHH:mm:ssZ<\/code>.<\/p>\n<div class=\"CodeBlock CodeBlock_overflow_visible CodeBlock_highlight\">\n<div class=\"CodeBlock-StickyWrapper\">\n<div class=\"CodeBlock-Header\">\n<div class=\"CodeBlock-HeaderTitle\">js<\/div>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 14px;\">const iso = <span style=\"color: #000000; font-weight: bold;\">new<\/span> <span style=\"color: #0066cc;\">Date<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">'2024-02-15T10:30:00Z'<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\nconsole.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span>iso.<span style=\"color: #006600;\">toISOString<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ \"2024-02-15T10:30:00.000Z\"<\/span><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<p>\u0414\u043b\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u0445 \u0444\u043e\u0440\u043c\u0430\u0442\u043e\u0432 \u043b\u0443\u0447\u0448\u0435 \u044f\u0432\u043d\u043e \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0443 \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0438\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440,\u00a0<code class=\"CodeInlined\">date-fns<\/code>,\u00a0<code class=\"CodeInlined\">Luxon<\/code>).<\/p>\n<hr \/>\n<h2>\u041e\u0448\u0438\u0431\u043a\u0430 4: \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u0435 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043f\u0440\u0438 \u043d\u0435\u0432\u0430\u043b\u0438\u0434\u043d\u043e\u0439 \u0434\u0430\u0442\u0435<\/h2>\n<p><strong>\u0412 \u0447\u0451\u043c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430.<\/strong>\u00a0<code class=\"CodeInlined\">new Date('\u043d\u0435 \u0434\u0430\u0442\u0430')<\/code>\u00a0\u043d\u0435 \u0432\u044b\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u0442 \u043e\u0448\u0438\u0431\u043a\u0443. \u0412\u043c\u0435\u0441\u0442\u043e \u044d\u0442\u043e\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u0451\u0442\u0441\u044f \u043e\u0431\u044a\u0435\u043a\u0442 \u0441\u043e \u0441\u0442\u0430\u0442\u0443\u0441\u043e\u043c\u00a0<code class=\"CodeInlined\">Invalid Date<\/code>. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c\u00a0<code class=\"CodeInlined\">typeof<\/code>\u00a0\u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u00a0<code class=\"CodeInlined\">\"object\"<\/code>.<\/p>\n<div class=\"CodeBlock CodeBlock_overflow_visible CodeBlock_highlight\">\n<div class=\"CodeBlock-StickyWrapper\">\n<div class=\"CodeBlock-Header\">\n<div class=\"CodeBlock-HeaderTitle\">js<\/div>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 14px;\">const bad = <span style=\"color: #000000; font-weight: bold;\">new<\/span> <span style=\"color: #0066cc;\">Date<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">'not-a-date'<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\nconsole.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span>bad.<span style=\"color: #0066cc;\">toString<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>;           <span style=\"color: #808080; font-style: italic;\">\/\/ \"Invalid Date\"<\/span>\r\nconsole.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">Number<\/span>.<span style=\"color: #0066cc;\">isNaN<\/span><span style=\"color: #66cc66;\">(<\/span>bad.<span style=\"color: #0066cc;\">getTime<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ true<\/span><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<p><strong>\u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435.<\/strong>\u00a0\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0439\u0442\u0435 \u0432\u0430\u043b\u0438\u0434\u043d\u043e\u0441\u0442\u044c \u0447\u0435\u0440\u0435\u0437\u00a0<code class=\"CodeInlined\">Number.isNaN(date.getTime())<\/code>.<\/p>\n<div class=\"CodeBlock CodeBlock_overflow_visible CodeBlock_highlight\">\n<div class=\"CodeBlock-StickyWrapper\">\n<div class=\"CodeBlock-Header\">\n<div class=\"CodeBlock-HeaderTitle\">js<\/div>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 14px;\"><span style=\"color: #000000; font-weight: bold;\">function<\/span> isValidDate<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">date<\/span><span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">{<\/span>\r\n  <span style=\"color: #b1b100;\">return<\/span> <span style=\"color: #0066cc;\">date<\/span> <span style=\"color: #0066cc;\">instanceof<\/span> <span style=\"color: #0066cc;\">Date<\/span> <span style=\"color: #66cc66;\">&amp;&amp;<\/span> <span style=\"color: #66cc66;\">!<\/span><span style=\"color: #0066cc;\">Number<\/span>.<span style=\"color: #0066cc;\">isNaN<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">date<\/span>.<span style=\"color: #0066cc;\">getTime<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n<span style=\"color: #66cc66;\">}<\/span><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<hr \/>\n<h2>\u041e\u0448\u0438\u0431\u043a\u0430 5: \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432\u00a0<code class=\"CodeInlined\">Date<\/code>\u00a0\u0447\u0435\u0440\u0435\u0437\u00a0<code class=\"CodeInlined\">===<\/code><\/h2>\n<p><strong>\u0412 \u0447\u0451\u043c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430.<\/strong>\u00a0\u041e\u0431\u044a\u0435\u043a\u0442\u044b \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u0432\u0435 \u0434\u0430\u0442\u044b \u0441 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c \u043d\u0435 \u0440\u0430\u0432\u043d\u044b.<\/p>\n<div class=\"CodeBlock CodeBlock_overflow_visible CodeBlock_highlight\">\n<div class=\"CodeBlock-StickyWrapper\">\n<div class=\"CodeBlock-Header\">\n<div class=\"CodeBlock-HeaderTitle\">js<\/div>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 14px;\">const a = <span style=\"color: #000000; font-weight: bold;\">new<\/span> <span style=\"color: #0066cc;\">Date<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">2024<\/span>, <span style=\"color: #cc66cc;\">0<\/span>, <span style=\"color: #cc66cc;\">1<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\nconst b = <span style=\"color: #000000; font-weight: bold;\">new<\/span> <span style=\"color: #0066cc;\">Date<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">2024<\/span>, <span style=\"color: #cc66cc;\">0<\/span>, <span style=\"color: #cc66cc;\">1<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\nconsole.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span>a === b<span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ false<\/span><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<p><strong>\u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435.<\/strong>\u00a0\u0421\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0439\u0442\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043c\u0435\u0442\u043a\u0438:<\/p>\n<div class=\"CodeBlock CodeBlock_overflow_visible CodeBlock_highlight\">\n<div class=\"CodeBlock-StickyWrapper\">\n<div class=\"CodeBlock-Header\">\n<div class=\"CodeBlock-HeaderTitle\">js<\/div>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 14px;\">console.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span>+a === +b<span style=\"color: #66cc66;\">)<\/span>;           <span style=\"color: #808080; font-style: italic;\">\/\/ true<\/span>\r\nconsole.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span>a.<span style=\"color: #0066cc;\">getTime<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span> === b.<span style=\"color: #0066cc;\">getTime<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ true<\/span><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<p>\u0414\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u00ab\u043e\u0434\u043d\u0430 \u0434\u0430\u0442\u0430 \u0440\u0430\u043d\u044c\u0448\u0435 \u0434\u0440\u0443\u0433\u043e\u0439\u00bb:<\/p>\n<div class=\"CodeBlock CodeBlock_overflow_visible CodeBlock_highlight\">\n<div class=\"CodeBlock-StickyWrapper\">\n<div class=\"CodeBlock-Header\">\n<div class=\"CodeBlock-HeaderTitle\">js<\/div>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 14px;\">const <span style=\"color: #0066cc;\">start<\/span> = <span style=\"color: #000000; font-weight: bold;\">new<\/span> <span style=\"color: #0066cc;\">Date<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">2024<\/span>, <span style=\"color: #cc66cc;\">0<\/span>, <span style=\"color: #cc66cc;\">1<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\nconst <span style=\"color: #0066cc;\">end<\/span> = <span style=\"color: #000000; font-weight: bold;\">new<\/span> <span style=\"color: #0066cc;\">Date<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">2024<\/span>, <span style=\"color: #cc66cc;\">0<\/span>, <span style=\"color: #cc66cc;\">10<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\nconsole.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">start<\/span> <span style=\"color: #66cc66;\">&lt;<\/span> <span style=\"color: #0066cc;\">end<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ true (\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u0438\u044e \u043a \u0447\u0438\u0441\u043b\u0443)<\/span><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<hr \/>\n<h2>\u041e\u0448\u0438\u0431\u043a\u0430 6: \u043f\u0443\u0442\u0430\u043d\u0438\u0446\u0430 \u043c\u0435\u0436\u0434\u0443 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c \u0438 UTC<\/h2>\n<p><strong>\u0412 \u0447\u0451\u043c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430.<\/strong>\u00a0\u041c\u0435\u0442\u043e\u0434\u044b\u00a0<code class=\"CodeInlined\">getMonth()<\/code>,\u00a0<code class=\"CodeInlined\">getDate()<\/code>,\u00a0<code class=\"CodeInlined\">getHours()<\/code>\u00a0\u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u043e \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f. \u041c\u0435\u0442\u043e\u0434\u044b\u00a0<code class=\"CodeInlined\">getUTCMonth()<\/code>,\u00a0<code class=\"CodeInlined\">getUTCHours()<\/code>\u00a0\u2014 \u043f\u043e UTC. \u0421\u043c\u0435\u0448\u0435\u043d\u0438\u0435 \u044d\u0442\u0438\u0445 \u043f\u043e\u0434\u0445\u043e\u0434\u043e\u0432 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u043a \u043e\u0448\u0438\u0431\u043a\u0430\u043c \u043f\u0440\u0438 \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u0442\u0430\u0439\u043c\u0437\u043e\u043d\u0430\u043c\u0438.<\/p>\n<div class=\"CodeBlock CodeBlock_overflow_visible CodeBlock_highlight\">\n<div class=\"CodeBlock-StickyWrapper\">\n<div class=\"CodeBlock-Header\">\n<div class=\"CodeBlock-HeaderTitle\">js<\/div>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 14px;\">const d = <span style=\"color: #000000; font-weight: bold;\">new<\/span> <span style=\"color: #0066cc;\">Date<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">'2024-01-15T12:00:00Z'<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ UTC<\/span>\r\nconsole.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span>d.<span style=\"color: #0066cc;\">getHours<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>;      <span style=\"color: #808080; font-style: italic;\">\/\/ \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0447\u0430\u0441\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u044f\u0441\u0430 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430<\/span>\r\nconsole.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span>d.<span style=\"color: #0066cc;\">getUTCHours<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>;   <span style=\"color: #808080; font-style: italic;\">\/\/ 12 (\u0432\u0441\u0435\u0433\u0434\u0430)<\/span><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<p><strong>\u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435.<\/strong><\/p>\n<ul>\n<li data-value=\"\" data-shift=\"0\">\u0414\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 UTC\/ISO.<\/li>\n<li data-value=\"\" data-shift=\"0\">\u0414\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u2014\u00a0<code class=\"CodeInlined\">toLocaleString()<\/code>\u00a0\u0441 \u044f\u0432\u043d\u044b\u043c \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u0435\u043c\u00a0<code class=\"CodeInlined\">timeZone<\/code>.<\/li>\n<\/ul>\n<div class=\"CodeBlock CodeBlock_overflow_visible CodeBlock_highlight\">\n<div class=\"CodeBlock-StickyWrapper\">\n<div class=\"CodeBlock-Header\">\n<div class=\"CodeBlock-HeaderTitle\">js<\/div>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 14px;\">const <span style=\"color: #0066cc;\">date<\/span> = <span style=\"color: #000000; font-weight: bold;\">new<\/span> <span style=\"color: #0066cc;\">Date<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">'2024-01-15T12:00:00Z'<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n\u00a0\r\n<span style=\"color: #808080; font-style: italic;\">\/\/ \u041e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0432 \u041c\u043e\u0441\u043a\u0432\u0435<\/span>\r\nconsole.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">date<\/span>.<span style=\"color: #006600;\">toLocaleString<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">'ru-RU'<\/span>, <span style=\"color: #66cc66;\">{<\/span> timeZone: <span style=\"color: #ff0000;\">'Europe\/Moscow'<\/span> <span style=\"color: #66cc66;\">}<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n\u00a0\r\n<span style=\"color: #808080; font-style: italic;\">\/\/ \u041e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0432 \u041d\u044c\u044e\u2011\u0419\u043e\u0440\u043a\u0435<\/span>\r\nconsole.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">date<\/span>.<span style=\"color: #006600;\">toLocaleString<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">'en-US'<\/span>, <span style=\"color: #66cc66;\">{<\/span> timeZone: <span style=\"color: #ff0000;\">'America\/New_York'<\/span> <span style=\"color: #66cc66;\">}<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>;<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<hr \/>\n<h2>\u041e\u0448\u0438\u0431\u043a\u0430 7: \u043d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 \u0434\u0430\u0442\u044b<\/h2>\n<p><strong>\u0412 \u0447\u0451\u043c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430.<\/strong>\u00a0\u041c\u0435\u0442\u043e\u0434\u044b \u0432\u0438\u0434\u0430\u00a0<code class=\"CodeInlined\">setMonth()<\/code>,\u00a0<code class=\"CodeInlined\">setDate()<\/code>\u00a0\u0438\u0437\u043c\u0435\u043d\u044f\u044e\u0442 \u0434\u0430\u0442\u0443 \u00ab\u043d\u0430 \u043c\u0435\u0441\u0442\u0435\u00bb \u0438 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u0438\u0440\u0443\u044e\u0442 \u0441\u043e\u0441\u0435\u0434\u043d\u0438\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b. \u041d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u043e\u0435 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442, \u0435\u0441\u043b\u0438 \u043d\u0435 \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u044d\u0442\u0443 \u0430\u0432\u0442\u043e\u043a\u043e\u0440\u0440\u0435\u043a\u0446\u0438\u044e.<\/p>\n<div class=\"CodeBlock CodeBlock_overflow_visible CodeBlock_highlight\">\n<div class=\"CodeBlock-StickyWrapper\">\n<div class=\"CodeBlock-Header\">\n<div class=\"CodeBlock-HeaderTitle\">js<\/div>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 14px;\">const d = <span style=\"color: #000000; font-weight: bold;\">new<\/span> <span style=\"color: #0066cc;\">Date<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">2024<\/span>, <span style=\"color: #cc66cc;\">0<\/span>, <span style=\"color: #cc66cc;\">31<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ 31 \u044f\u043d\u0432\u0430\u0440\u044f<\/span>\r\nd.<span style=\"color: #0066cc;\">setMonth<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">1<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ \u0444\u0435\u0432\u0440\u0430\u043b\u044c 2024 \u0438\u043c\u0435\u0435\u0442 29 \u0434\u043d\u0435\u0439<\/span>\r\nconsole.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span>d.<span style=\"color: #006600;\">toLocaleDateString<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">'ru-RU'<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ 29.02.2024 (\u043d\u0435 31.02)<\/span><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<p><strong>\u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435.<\/strong>\u00a0\u0415\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u0430 \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0443\u0435\u043c\u0430\u044f \u043b\u043e\u0433\u0438\u043a\u0430 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u00ab\u043f\u043b\u044e\u0441 N \u0434\u043d\u0435\u0439\u00bb), \u043b\u0443\u0447\u0448\u0435 \u043f\u0440\u0438\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u043c\u0438\u043b\u043b\u0438\u0441\u0435\u043a\u0443\u043d\u0434\u044b:<\/p>\n<div class=\"CodeBlock CodeBlock_overflow_visible CodeBlock_highlight\">\n<div class=\"CodeBlock-StickyWrapper\">\n<div class=\"CodeBlock-Header\">\n<div class=\"CodeBlock-HeaderTitle\">js<\/div>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 14px;\"><span style=\"color: #000000; font-weight: bold;\">function<\/span> addDays<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">date<\/span>, days<span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">{<\/span>\r\n  const result = <span style=\"color: #000000; font-weight: bold;\">new<\/span> <span style=\"color: #0066cc;\">Date<\/span><span style=\"color: #66cc66;\">(<\/span>+<span style=\"color: #0066cc;\">date<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ \u043a\u043e\u043f\u0438\u044f<\/span>\r\n  result.<span style=\"color: #0066cc;\">setTime<\/span><span style=\"color: #66cc66;\">(<\/span>result.<span style=\"color: #0066cc;\">getTime<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span> + days <span style=\"color: #66cc66;\">*<\/span> <span style=\"color: #cc66cc;\">24<\/span> <span style=\"color: #66cc66;\">*<\/span> <span style=\"color: #cc66cc;\">60<\/span> <span style=\"color: #66cc66;\">*<\/span> <span style=\"color: #cc66cc;\">60<\/span> <span style=\"color: #66cc66;\">*<\/span> <span style=\"color: #cc66cc;\">1000<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  <span style=\"color: #b1b100;\">return<\/span> result;\r\n<span style=\"color: #66cc66;\">}<\/span>\r\n\u00a0\r\nconst base = <span style=\"color: #000000; font-weight: bold;\">new<\/span> <span style=\"color: #0066cc;\">Date<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">2024<\/span>, <span style=\"color: #cc66cc;\">0<\/span>, <span style=\"color: #cc66cc;\">31<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\nconst plus10 = addDays<span style=\"color: #66cc66;\">(<\/span>base, <span style=\"color: #cc66cc;\">10<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\nconsole.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span>plus10.<span style=\"color: #006600;\">toLocaleDateString<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">'ru-RU'<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>;<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<hr \/>\n<h2>\u041e\u0448\u0438\u0431\u043a\u0430 8: \u0440\u0430\u0441\u0447\u0451\u0442 \u0440\u0430\u0437\u043d\u0438\u0446\u044b \u043c\u0435\u0436\u0434\u0443 \u0434\u0430\u0442\u0430\u043c\u0438 \u0431\u0435\u0437 \u0443\u0447\u0451\u0442\u0430 \u043c\u0438\u043b\u043b\u0438\u0441\u0435\u043a\u0443\u043d\u0434<\/h2>\n<p><strong>\u0412 \u0447\u0451\u043c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430.<\/strong>\u00a0\u0420\u0430\u0437\u043d\u043e\u0441\u0442\u044c \u0434\u0432\u0443\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432\u00a0<code class=\"CodeInlined\">Date<\/code>\u00a0\u2014 \u044d\u0442\u043e \u0447\u0438\u0441\u043b\u043e \u043c\u0438\u043b\u043b\u0438\u0441\u0435\u043a\u0443\u043d\u0434. \u0415\u0441\u043b\u0438 \u0437\u0430\u0431\u044b\u0442\u044c \u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043d\u0430 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442, \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0431\u0443\u0434\u0435\u0442 \u043d\u0435\u0432\u0435\u0440\u043d\u044b\u043c.<\/p>\n<div class=\"CodeBlock CodeBlock_overflow_visible CodeBlock_highlight\">\n<div class=\"CodeBlock-StickyWrapper\">\n<div class=\"CodeBlock-Header\">\n<div class=\"CodeBlock-HeaderTitle\">js<\/div>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 14px;\">const <span style=\"color: #0066cc;\">start<\/span> = <span style=\"color: #000000; font-weight: bold;\">new<\/span> <span style=\"color: #0066cc;\">Date<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">2024<\/span>, <span style=\"color: #cc66cc;\">0<\/span>, <span style=\"color: #cc66cc;\">1<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\nconst <span style=\"color: #0066cc;\">end<\/span> = <span style=\"color: #000000; font-weight: bold;\">new<\/span> <span style=\"color: #0066cc;\">Date<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">2024<\/span>, <span style=\"color: #cc66cc;\">0<\/span>, <span style=\"color: #cc66cc;\">11<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\nconst diffMs = <span style=\"color: #0066cc;\">end<\/span> - <span style=\"color: #0066cc;\">start<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ \u043c\u0438\u043b\u043b\u0438\u0441\u0435\u043a\u0443\u043d\u0434\u044b<\/span>\r\nconst diffDaysWrong = diffMs <span style=\"color: #66cc66;\">\/<\/span> <span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">60<\/span> <span style=\"color: #66cc66;\">*<\/span> <span style=\"color: #cc66cc;\">60<\/span> <span style=\"color: #66cc66;\">*<\/span> <span style=\"color: #cc66cc;\">24<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ \u0437\u0430\u0431\u044b\u043b\u0438 \u0443\u043c\u043d\u043e\u0436\u0438\u0442\u044c \u043d\u0430 1000<\/span>\r\nconst diffDaysCorrect = diffMs <span style=\"color: #66cc66;\">\/<\/span> <span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">1000<\/span> <span style=\"color: #66cc66;\">*<\/span> <span style=\"color: #cc66cc;\">60<\/span> <span style=\"color: #66cc66;\">*<\/span> <span style=\"color: #cc66cc;\">60<\/span> <span style=\"color: #66cc66;\">*<\/span> <span style=\"color: #cc66cc;\">24<\/span><span style=\"color: #66cc66;\">)<\/span>;<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<p><strong>\u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435.<\/strong>\u00a0\u042f\u0432\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u043c\u043d\u043e\u0436\u0438\u0442\u0435\u043b\u044c 1000 \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430 \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u044b\/\u0434\u043d\u0438.<\/p>\n<div class=\"CodeBlock CodeBlock_overflow_visible CodeBlock_highlight\">\n<div class=\"CodeBlock-StickyWrapper\">\n<div class=\"CodeBlock-Header\">\n<div class=\"CodeBlock-HeaderTitle\">js<\/div>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 14px;\">const secondsPerDay = <span style=\"color: #cc66cc;\">1000<\/span> <span style=\"color: #66cc66;\">*<\/span> <span style=\"color: #cc66cc;\">60<\/span> <span style=\"color: #66cc66;\">*<\/span> <span style=\"color: #cc66cc;\">60<\/span> <span style=\"color: #66cc66;\">*<\/span> <span style=\"color: #cc66cc;\">24<\/span>;\r\nconst days = <span style=\"color: #0066cc;\">Math<\/span>.<span style=\"color: #0066cc;\">floor<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">end<\/span> - <span style=\"color: #0066cc;\">start<\/span><span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">\/<\/span> secondsPerDay<span style=\"color: #66cc66;\">)<\/span>;<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<hr \/>\n<h2>\u041f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438<\/h2>\n<ul>\n<li data-value=\"\" data-shift=\"0\"><strong>\u0425\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0430:<\/strong>\u00a0\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 ISO\u2011\u0441\u0442\u0440\u043e\u043a\u0438 (<code class=\"CodeInlined\">toISOString()<\/code>) \u0438\u043b\u0438 timestamp (<code class=\"CodeInlined\">Date.now()<\/code>).<\/li>\n<li data-value=\"\" data-shift=\"0\"><strong>\u041e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435:<\/strong>\u00a0\u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0439\u0442\u0435\u00a0<code class=\"CodeInlined\">toLocaleString()<\/code>\u00a0\u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c\u00a0<code class=\"CodeInlined\">timeZone<\/code>, \u0447\u0442\u043e\u0431\u044b \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430.<\/li>\n<li data-value=\"\" data-shift=\"0\"><strong>\u0421\u043b\u043e\u0436\u043d\u044b\u0435 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0438<\/strong>\u00a0(\u043f\u0430\u0440\u0441\u0438\u043d\u0433 \u0440\u0430\u0437\u043d\u044b\u0445 \u0444\u043e\u0440\u043c\u0430\u0442\u043e\u0432, \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0441 \u0443\u0447\u0451\u0442\u043e\u043c \u043a\u0430\u043b\u0435\u043d\u0434\u0430\u0440\u044f, \u0442\u0430\u0439\u043c\u0437\u043e\u043d\u044b): \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u044b\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 (<code class=\"CodeInlined\">date-fns<\/code>,\u00a0<code class=\"CodeInlined\">dayjs<\/code>,\u00a0<code class=\"CodeInlined\">Luxon<\/code>) \u0432\u043c\u0435\u0441\u0442\u043e \u0440\u0443\u0447\u043d\u043e\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438.<\/li>\n<li data-value=\"\" data-shift=\"0\"><strong>\u0412\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u044f:<\/strong>\u00a0\u0432\u0441\u0435\u0433\u0434\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0439\u0442\u0435\u00a0<code class=\"CodeInlined\">isValidDate(date)<\/code>\u00a0\u043f\u0435\u0440\u0435\u0434 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0434\u0430\u0442\u044b \u0438\u0437 \u043d\u0435\u043d\u0430\u0434\u0451\u0436\u043d\u043e\u0433\u043e \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430.<\/li>\n<\/ul>\n<hr \/>\n<h2>\u041c\u0438\u043d\u0438\u2011\u043f\u0440\u0438\u043c\u0435\u0440: \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0439 \u0440\u0430\u0437\u0431\u043e\u0440 \u0441\u0442\u0440\u043e\u043a\u0438 \u0438 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435<\/h2>\n<div class=\"CodeBlock CodeBlock_overflow_visible CodeBlock_highlight\">\n<div class=\"CodeBlock-StickyWrapper\">\n<div class=\"CodeBlock-Header\">\n<div class=\"CodeBlock-HeaderTitle\">js + html<\/div>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 14px;\"><span style=\"color: #66cc66;\">&lt;!<\/span>DOCTYPE html<span style=\"color: #66cc66;\">&gt;<\/span>\r\n<span style=\"color: #66cc66;\">&lt;<\/span><span style=\"color: #0066cc;\">html<\/span> lang=<span style=\"color: #ff0000;\">\"ru\"<\/span><span style=\"color: #66cc66;\">&gt;<\/span>\r\n<span style=\"color: #66cc66;\">&lt;<\/span>head<span style=\"color: #66cc66;\">&gt;<\/span>\r\n  <span style=\"color: #66cc66;\">&lt;<\/span>meta charset=<span style=\"color: #ff0000;\">\"UTF-8\"<\/span><span style=\"color: #66cc66;\">&gt;<\/span>\r\n  <span style=\"color: #66cc66;\">&lt;<\/span>title<span style=\"color: #66cc66;\">&gt;<\/span>\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u0434\u0430\u0442\u043e\u0439<span style=\"color: #66cc66;\">&lt;\/<\/span>title<span style=\"color: #66cc66;\">&gt;<\/span>\r\n<span style=\"color: #66cc66;\">&lt;\/<\/span>head<span style=\"color: #66cc66;\">&gt;<\/span>\r\n<span style=\"color: #66cc66;\">&lt;<\/span>body<span style=\"color: #66cc66;\">&gt;<\/span>\r\n\u00a0\r\n  <span style=\"color: #66cc66;\">&lt;<\/span>h2<span style=\"color: #66cc66;\">&gt;<\/span>\u0414\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043c\u044f<span style=\"color: #66cc66;\">&lt;\/<\/span>h2<span style=\"color: #66cc66;\">&gt;<\/span>\r\n  <span style=\"color: #66cc66;\">&lt;<\/span>div id=<span style=\"color: #ff0000;\">\"output\"<\/span><span style=\"color: #66cc66;\">&gt;&lt;\/<\/span>div<span style=\"color: #66cc66;\">&gt;<\/span>\r\n\u00a0\r\n  <span style=\"color: #66cc66;\">&lt;<\/span>script<span style=\"color: #66cc66;\">&gt;<\/span>\r\n    <span style=\"color: #000000; font-weight: bold;\">function<\/span> isValidDate<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">date<\/span><span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">{<\/span>\r\n      <span style=\"color: #b1b100;\">return<\/span> <span style=\"color: #0066cc;\">date<\/span> <span style=\"color: #0066cc;\">instanceof<\/span> <span style=\"color: #0066cc;\">Date<\/span> <span style=\"color: #66cc66;\">&amp;&amp;<\/span> <span style=\"color: #66cc66;\">!<\/span><span style=\"color: #0066cc;\">Number<\/span>.<span style=\"color: #0066cc;\">isNaN<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">date<\/span>.<span style=\"color: #0066cc;\">getTime<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n    <span style=\"color: #66cc66;\">}<\/span>\r\n\u00a0\r\n    <span style=\"color: #000000; font-weight: bold;\">function<\/span> parseSafe<span style=\"color: #66cc66;\">(<\/span>isoString<span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">{<\/span>\r\n      const <span style=\"color: #0066cc;\">date<\/span> = <span style=\"color: #000000; font-weight: bold;\">new<\/span> <span style=\"color: #0066cc;\">Date<\/span><span style=\"color: #66cc66;\">(<\/span>isoString<span style=\"color: #66cc66;\">)<\/span>;\r\n      <span style=\"color: #b1b100;\">if<\/span> <span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">!<\/span>isValidDate<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">date<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">{<\/span>\r\n        <span style=\"color: #0066cc;\">throw<\/span> <span style=\"color: #000000; font-weight: bold;\">new<\/span> <span style=\"color: #0066cc;\">Error<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">'\u041d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u0430\u044f \u0434\u0430\u0442\u0430'<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n      <span style=\"color: #66cc66;\">}<\/span>\r\n      <span style=\"color: #b1b100;\">return<\/span> <span style=\"color: #0066cc;\">date<\/span>;\r\n    <span style=\"color: #66cc66;\">}<\/span>\r\n\u00a0\r\n    <span style=\"color: #000000; font-weight: bold;\">function<\/span> formatForUser<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">date<\/span>, locale = <span style=\"color: #ff0000;\">'ru-RU'<\/span>, timeZone = <span style=\"color: #ff0000;\">'Europe\/Moscow'<\/span><span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">{<\/span>\r\n      <span style=\"color: #b1b100;\">return<\/span> <span style=\"color: #0066cc;\">date<\/span>.<span style=\"color: #006600;\">toLocaleString<\/span><span style=\"color: #66cc66;\">(<\/span>locale, <span style=\"color: #66cc66;\">{<\/span>\r\n        year: <span style=\"color: #ff0000;\">'numeric'<\/span>,\r\n        month: <span style=\"color: #ff0000;\">'long'<\/span>,\r\n        day: <span style=\"color: #ff0000;\">'numeric'<\/span>,\r\n        hour: <span style=\"color: #ff0000;\">'2-digit'<\/span>,\r\n        minute: <span style=\"color: #ff0000;\">'2-digit'<\/span>,\r\n        timeZone,\r\n      <span style=\"color: #66cc66;\">}<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n    <span style=\"color: #66cc66;\">}<\/span>\r\n\u00a0\r\n    const input = <span style=\"color: #ff0000;\">'2024-03-10T14:30:00Z'<\/span>;\r\n    const d = parseSafe<span style=\"color: #66cc66;\">(<\/span>input<span style=\"color: #66cc66;\">)<\/span>;\r\n    const formatted = formatForUser<span style=\"color: #66cc66;\">(<\/span>d<span style=\"color: #66cc66;\">)<\/span>;\r\n\u00a0\r\n    <span style=\"color: #808080; font-style: italic;\">\/\/ \u0412\u044b\u0432\u043e\u0434 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d \u0432 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0441 id=\"output\"<\/span>\r\n    document.<span style=\"color: #006600;\">getElementById<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">'output'<\/span><span style=\"color: #66cc66;\">)<\/span>.<span style=\"color: #006600;\">textContent<\/span> = formatted;\r\n\u00a0\r\n    <span style=\"color: #808080; font-style: italic;\">\/\/ (\u041e\u043f\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e) \u0434\u0443\u0431\u043b\u0438\u0440\u0443\u0435\u043c \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438<\/span>\r\n    console.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span>formatted<span style=\"color: #66cc66;\">)<\/span>;\r\n  <span style=\"color: #66cc66;\">&lt;\/<\/span>script<span style=\"color: #66cc66;\">&gt;<\/span>\r\n<span style=\"color: #66cc66;\">&lt;\/<\/span>body<span style=\"color: #66cc66;\">&gt;<\/span>\r\n<span style=\"color: #66cc66;\">&lt;\/<\/span>html<span style=\"color: #66cc66;\">&gt;<\/span><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-135324\" src=\"https:\/\/rcl-radio.ru\/wp-content\/uploads\/2026\/07\/2738927308734897293.png\" alt=\"\" width=\"197\" height=\"106\" \/><\/p>\n<p>\u042d\u0442\u043e\u0442 \u043f\u043e\u0434\u0445\u043e\u0434 \u043c\u0438\u043d\u0438\u043c\u0438\u0437\u0438\u0440\u0443\u0435\u0442 \u043e\u0448\u0438\u0431\u043a\u0438, \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u0441 \u0444\u043e\u0440\u043c\u0430\u0442\u0430\u043c\u0438, \u0442\u0430\u0439\u043c\u0437\u043e\u043d\u0430\u043c\u0438 \u0438 \u0432\u0430\u043b\u0438\u0434\u043d\u043e\u0441\u0442\u044c\u044e \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u041e\u0431\u044a\u0435\u043a\u0442\u00a0Date\u00a0\u0432 JavaScript \u2014 \u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c, \u043d\u043e \u0432 \u043d\u0451\u043c \u0441\u043a\u0440\u044b\u0442\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043d\u0435\u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0445 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0435\u0439. \u041d\u0438\u0436\u0435 \u2014 \u0447\u0430\u0441\u0442\u044b\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 \u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u044b \u0438\u0445 \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c, \u0441 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u043c\u0438 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c\u0438 \u043a\u043e\u0434\u0430. \u041e\u0448\u0438\u0431\u043a\u0430 1: \u0432\u044b\u0437\u043e\u0432\u00a0Date()\u00a0\u0431\u0435\u0437\u00a0new \u0412 \u0447\u0451\u043c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430.\u00a0\u0415\u0441\u043b\u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c\u00a0const d = Date(), \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u043d\u0435 \u043e\u0431\u044a\u0435\u043a\u0442 \u0434\u0430\u0442\u044b, \u0430 \u0441\u0442\u0440\u043e\u043a\u0430 \u0441 \u0442\u0435\u043a\u0443\u0449\u0438\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c. \u0422\u0430\u043a\u043e\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043d\u0435\u043b\u044c\u0437\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0439 \u0438\u043b\u0438 \u0438\u0437\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u044f [&hellip;]<\/p>\n","protected":false},"author":9194254,"featured_media":135324,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[463],"tags":[],"class_list":["post-135323","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-javascript"],"views":7,"_links":{"self":[{"href":"https:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/135323","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/users\/9194254"}],"replies":[{"embeddable":true,"href":"https:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=135323"}],"version-history":[{"count":1,"href":"https:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/135323\/revisions"}],"predecessor-version":[{"id":135325,"href":"https:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/135323\/revisions\/135325"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/media\/135324"}],"wp:attachment":[{"href":"https:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=135323"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=135323"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=135323"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}