{"id":9,"date":"2026-04-09T20:55:49","date_gmt":"2026-04-09T13:55:49","guid":{"rendered":"https:\/\/channuoiheo.vn\/?page_id=9"},"modified":"2026-04-09T20:59:54","modified_gmt":"2026-04-09T13:59:54","slug":"trang-tinh-ngay-du-de-cho-heo","status":"publish","type":"page","link":"https:\/\/channuoiheo.vn\/?page_id=9","title":{"rendered":"Trang t\u00ednh ng\u00e0y d\u1ef1 \u0111\u1ebb cho Heo"},"content":{"rendered":"    <div style=\"max-width: 500px; margin: 20px auto; padding: 20px; border: 1px solid #ddd; border-radius: 8px; background: #f9f9f9; font-family: Arial, sans-serif;\">\n        <h2 style=\"text-align: center; color: #2c3e50;\">\ud83d\udcc5 T\u00ednh Ng\u00e0y \u0110\u1ebb Cho Heo (114 ng\u00e0y)<\/h2>\n        \n        <label for=\"ngay_phoi\" style=\"display: block; margin: 15px 0 5px; font-weight: bold;\">Nh\u1eadp ng\u00e0y ph\u1ed1i gi\u1ed1ng (ng\u00e0y \u0111\u1ebb d\u1ef1 ki\u1ebfn = ng\u00e0y ph\u1ed1i + 114 ng\u00e0y):<\/label>\n        <input type=\"date\" id=\"ngay_phoi\" style=\"width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 16px;\">\n        \n        <button onclick=\"tinhNgayDe()\" style=\"margin-top: 15px; padding: 12px 20px; background: #27ae60; color: white; border: none; border-radius: 4px; cursor: pointer; font-size: 16px; width: 100%;\">\n            T\u00ednh ng\u00e0y \u0111\u1ebb d\u1ef1 ki\u1ebfn\n        <\/button>\n        \n        <div id=\"ketqua\" style=\"margin-top: 20px; padding: 15px; background: #fff; border: 1px solid #ddd; border-radius: 4px; min-height: 50px; font-size: 18px; text-align: center;\"><\/div>\n    <\/div>\n\n    <script>\n    function tinhNgayDe() {\n        const ngayPhoi = document.getElementById('ngay_phoi').value;\n        const ketqua = document.getElementById('ketqua');\n        \n        if (!ngayPhoi) {\n            ketqua.innerHTML = '<span style=\"color: red;\">Vui l\u00f2ng ch\u1ecdn ng\u00e0y ph\u1ed1i gi\u1ed1ng!<\/span>';\n            return;\n        }\n        \n        const date = new Date(ngayPhoi);\n        date.setDate(date.getDate() + 114); \/\/ C\u1ed9ng 114 ng\u00e0y\n        \n        const ngayDe = date.toLocaleDateString('vi-VN', {\n            weekday: 'long',\n            year: 'numeric',\n            month: 'long',\n            day: 'numeric'\n        });\n        \n        ketqua.innerHTML = `\n            <strong>Ng\u00e0y \u0111\u1ebb d\u1ef1 ki\u1ebfn:<\/strong><br>\n            <span style=\"color: #27ae60; font-size: 20px;\">${ngayDe}<\/span><br>\n            <small>(\u0110\u00e3 c\u1ed9ng 114 ng\u00e0y t\u1eeb ng\u00e0y ph\u1ed1i gi\u1ed1ng)<\/small>\n        `;\n    }\n    <\/script>\n    \n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-9","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/channuoiheo.vn\/index.php?rest_route=\/wp\/v2\/pages\/9","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/channuoiheo.vn\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/channuoiheo.vn\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/channuoiheo.vn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/channuoiheo.vn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9"}],"version-history":[{"count":4,"href":"https:\/\/channuoiheo.vn\/index.php?rest_route=\/wp\/v2\/pages\/9\/revisions"}],"predecessor-version":[{"id":14,"href":"https:\/\/channuoiheo.vn\/index.php?rest_route=\/wp\/v2\/pages\/9\/revisions\/14"}],"wp:attachment":[{"href":"https:\/\/channuoiheo.vn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}