{"id":69,"date":"2026-03-17T23:07:00","date_gmt":"2026-03-17T14:07:00","guid":{"rendered":"http:\/\/tool-laboratory.com\/?p=69"},"modified":"2026-04-12T10:26:44","modified_gmt":"2026-04-12T01:26:44","slug":"date-difference","status":"publish","type":"post","link":"https:\/\/tool-laboratory.com\/en\/date-difference\/","title":{"rendered":"\u65e5\u4ed8\u8a08\u7b97\uff5c\u3007\u65e5\u5f8c\u30fb\u671f\u9593\u3092\u81ea\u52d5\u3067\u7b97\u51fa\u3010\u7121\u6599\u3011"},"content":{"rendered":"<!DOCTYPE html>\n<html lang=\"ja\">\n<head>\n<meta charset=\"UTF-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n<title>\u65e5\u4ed8\u8a08\u7b97\u30c4\u30fc\u30eb<\/title>\n<style>\nbody{\n  font-family: Arial;\n  background:#fff;\n  color:#000;\n  padding:20px;\n}\n.container{\n  max-width:1000px;\n  margin:auto;\n}\ninput,button{\n  width:100%;\n  padding:15px;\n  margin-top:10px;\n  font-size:18px;\n}\nbutton{\n  background:#000;\n  color:#fff;\n  border:none;\n}\n.result{\n  margin-top:20px;\n  border:1px solid #ccc;\n  padding:15px;\n}\n<\/style>\n<\/head>\n<body>\n\n<div class=\"container\">\n<h1>\u65e5\u4ed8\u8a08\u7b97\u30c4\u30fc\u30eb<\/h1>\n\n<label>\u958b\u59cb\u65e5<\/label>\n<input type=\"date\" id=\"start\">\n\n<label>\u7d42\u4e86\u65e5<\/label>\n<input type=\"date\" id=\"end\">\n\n<button onclick=\"calc()\">\u65e5\u6570\u3092\u8a08\u7b97<\/button>\n\n<div class=\"result\" id=\"result\"><\/div>\n<\/div>\n\n<script>\nfunction calc(){\n  let start = new Date(document.getElementById(\"start\").value);\n  let end = new Date(document.getElementById(\"end\").value);\n\n  if(!start || !end){\n    document.getElementById(\"result\").innerText = \"\u65e5\u4ed8\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\";\n    return;\n  }\n\n  let diff = (end - start) \/ (1000 * 60 * 60 * 24);\n\n  document.getElementById(\"result\").innerHTML =\n    \"\u671f\u9593\u306f <strong>\" + diff + \"\u65e5<\/strong> \u3067\u3059\";\n}\n<\/script>\n\n<\/body>\n<\/html>\n\n\n\n<p>\u300c\u4eca\u65e5\u304b\u3089\u4f55\u65e5\u5f8c\u3060\u3063\u3051\uff1f\u300d<br>\u300c2\u3064\u306e\u65e5\u4ed8\u306e\u5dee\u3092\u77e5\u308a\u305f\u3044\u300d<\/p>\n\n\n\n<p>\u305d\u3093\u306a\u3068\u304d\u306b\u4fbf\u5229\u306a\u306e\u304c\u3001\u3053\u306e\u65e5\u4ed8\u8a08\u7b97\u30c4\u30fc\u30eb\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u958b\u59cb\u65e5\u3068\u7d42\u4e86\u65e5\u3092\u5165\u529b\u3059\u308b\u3060\u3051\u3067\u3001<br>\u305d\u306e\u671f\u9593\u306e\u65e5\u6570\u3092\u81ea\u52d5\u3067\u8a08\u7b97\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u25a0 \u30c4\u30fc\u30eb\u306e\u4f7f\u3044\u65b9<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u958b\u59cb\u65e5\u3092\u5165\u529b<\/li>\n\n\n\n<li>\u7d42\u4e86\u65e5\u3092\u5165\u529b<\/li>\n\n\n\n<li>\u300c\u65e5\u6570\u3092\u8a08\u7b97\u300d\u3092\u30af\u30ea\u30c3\u30af<\/li>\n<\/ol>\n\n\n\n<p>\u3053\u308c\u3060\u3051\u3067\u30012\u3064\u306e\u65e5\u4ed8\u306e\u5dee\u304c\u3059\u3050\u306b\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u25a0 \u3053\u306e\u30c4\u30fc\u30eb\u306e\u30e1\u30ea\u30c3\u30c8<\/p>\n\n\n\n<p>\u30fb\u4f55\u65e5\u5f8c\u30fb\u4f55\u65e5\u524d\u304c\u3059\u3050\u308f\u304b\u308b<br>\u30fb\u4ed5\u4e8b\u3084\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u7ba1\u7406\u306b\u4f7f\u3048\u308b<br>\u30fb\u8a66\u9a13\u65e5\u30fb\u30a4\u30d9\u30f3\u30c8\u307e\u3067\u306e\u6b8b\u308a\u65e5\u6570\u3092\u628a\u63e1\u3067\u304d\u308b<br>\u30fb\u5b8c\u5168\u7121\u6599\u3067\u4f7f\u3048\u308b<\/p>\n\n\n\n<p>\u25a0 \u3053\u3093\u306a\u5834\u9762\u3067\u6d3b\u8e8d<\/p>\n\n\n\n<p>\u30fb\u7de0\u5207\u307e\u3067\u306e\u65e5\u6570\u78ba\u8a8d<br>\u30fb\u8a18\u5ff5\u65e5\u307e\u3067\u306e\u30ab\u30a6\u30f3\u30c8<br>\u30fb\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u671f\u9593\u306e\u628a\u63e1<br>\u30fb\u30c0\u30a4\u30a8\u30c3\u30c8\u3084\u52c9\u5f37\u306e\u9032\u6357\u7ba1\u7406<\/p>\n\n\n\n<p>\u25a0 \u6ce8\u610f\u70b9<\/p>\n\n\n\n<p>\u30fb\u65e5\u4ed8\u306e\u5165\u529b\u30df\u30b9\u306b\u6ce8\u610f<br>\u30fb\u540c\u3058\u65e5\u4ed8\u306e\u5834\u5408\u306f0\u65e5\u3068\u8868\u793a\u3055\u308c\u307e\u3059<\/p>\n\n\n\n<p>\u25a0 \u3088\u304f\u3042\u308b\u8cea\u554f<\/p>\n\n\n\n<p>Q\uff1a\u7121\u6599\u3067\u3059\u304b\uff1f<br>A\uff1a\u306f\u3044\u3001\u5b8c\u5168\u7121\u6599\u3067\u5229\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>Q\uff1a\u30b9\u30de\u30db\u3067\u3082\u4f7f\u3048\u307e\u3059\u304b\uff1f<br>A\uff1a\u554f\u984c\u306a\u304f\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>Q\uff1a\u4f55\u65e5\u524d\u3082\u8a08\u7b97\u3067\u304d\u307e\u3059\u304b\uff1f<br>A\uff1a\u306f\u3044\u3001\u904e\u53bb\u306e\u65e5\u4ed8\u3092\u5165\u529b\u3059\u308c\u3070\u8a08\u7b97\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u25a0 \u307e\u3068\u3081<\/p>\n\n\n\n<p>\u65e5\u4ed8\u306e\u8a08\u7b97\u306f\u610f\u5916\u3068\u9762\u5012\u3067\u3059\u304c\u3001<br>\u3053\u306e\u30c4\u30fc\u30eb\u3092\u4f7f\u3048\u3070\u4e00\u77ac\u3067\u89e3\u6c7a\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u65e5\u5e38\u751f\u6d3b\u304b\u3089\u4ed5\u4e8b\u307e\u3067\u3001<br>\u3055\u307e\u3056\u307e\u306a\u5834\u9762\u3067\u6d3b\u7528\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>","protected":false},"excerpt":{"rendered":"<p>\u65e5\u4ed8\u8a08\u7b97\u30c4\u30fc\u30eb \u65e5\u4ed8\u8a08\u7b97\u30c4\u30fc\u30eb \u958b\u59cb\u65e5 \u7d42\u4e86\u65e5 \u65e5\u6570\u3092\u8a08\u7b97 \u300c\u4eca\u65e5\u304b\u3089\u4f55\u65e5\u5f8c\u3060\u3063\u3051\uff1f\u300d\u300c2\u3064\u306e\u65e5\u4ed8\u306e\u5dee\u3092\u77e5\u308a\u305f\u3044\u300d \u305d\u3093\u306a\u3068\u304d\u306b\u4fbf\u5229\u306a\u306e\u304c\u3001\u3053\u306e\u65e5\u4ed8\u8a08\u7b97\u30c4\u30fc\u30eb\u3067\u3059\u3002 \u958b\u59cb\u65e5\u3068\u7d42\u4e86\u65e5\u3092\u5165\u529b\u3059\u308b\u3060\u3051\u3067\u3001\u305d\u306e\u671f\u9593\u306e\u65e5\u6570\u3092\u81ea\u52d5\u3067 &#8230; <a title=\"\u65e5\u4ed8\u8a08\u7b97\uff5c\u3007\u65e5\u5f8c\u30fb\u671f\u9593\u3092\u81ea\u52d5\u3067\u7b97\u51fa\u3010\u7121\u6599\u3011\" class=\"read-more\" href=\"https:\/\/tool-laboratory.com\/en\/date-difference\/\" aria-label=\"Read more about \u65e5\u4ed8\u8a08\u7b97\uff5c\u3007\u65e5\u5f8c\u30fb\u671f\u9593\u3092\u81ea\u52d5\u3067\u7b97\u51fa\u3010\u7121\u6599\u3011\">Read more<\/a><\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-69","post","type-post","status-publish","format-standard","hentry","category-house-tools"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/tool-laboratory.com\/en\/wp-json\/wp\/v2\/posts\/69","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tool-laboratory.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tool-laboratory.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tool-laboratory.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tool-laboratory.com\/en\/wp-json\/wp\/v2\/comments?post=69"}],"version-history":[{"count":3,"href":"https:\/\/tool-laboratory.com\/en\/wp-json\/wp\/v2\/posts\/69\/revisions"}],"predecessor-version":[{"id":417,"href":"https:\/\/tool-laboratory.com\/en\/wp-json\/wp\/v2\/posts\/69\/revisions\/417"}],"wp:attachment":[{"href":"https:\/\/tool-laboratory.com\/en\/wp-json\/wp\/v2\/media?parent=69"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tool-laboratory.com\/en\/wp-json\/wp\/v2\/categories?post=69"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tool-laboratory.com\/en\/wp-json\/wp\/v2\/tags?post=69"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}