{"id":6462,"date":"2024-09-10T11:46:31","date_gmt":"2024-09-10T02:46:31","guid":{"rendered":"https:\/\/taitan916.info\/blog\/?p=6462"},"modified":"2024-06-08T12:47:24","modified_gmt":"2024-06-08T03:47:24","slug":"post-6462","status":"publish","type":"post","link":"https:\/\/taitan916.info\/blog\/archives\/6462","title":{"rendered":"jQuery\u306e\u300cDateTimePicker\u300d\u30d7\u30e9\u30b0\u30a4\u30f3\u3067\u65e5\u4ed8\u3084\u6642\u9593\u9078\u629e\u6642\u306b\u6307\u5b9a\u3057\u305f\u30a4\u30d9\u30f3\u30c8\u3092\u5b9f\u884c\u3055\u305b\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>jQuery\u306e\u300cDateTimePicker\u300d\u30d7\u30e9\u30b0\u30a4\u30f3\u3067\u65e5\u4ed8\u3084\u6642\u9593\u9078\u629e\u6642\u3001\u3042\u3089\u304b\u3058\u3081\u6307\u5b9a\u3057\u305f\u51e6\u7406\u3092\u5b9f\u884c\u3055\u305b\u305f\u3044\u3002\u4ee5\u4e0b\u306b\u5bfe\u5fdc\u65b9\u6cd5\u3092\u30e1\u30e2\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2><span id=\"DateTimePicker\">DateTimePicker<\/span><\/h2>\n<h3><span id=\"i-2\">\u516c\u5f0f\u30b5\u30a4\u30c8<\/span><\/h3>\n<p><a href=\"https:\/\/xdsoft.net\/jqplugins\/datetimepicker\/\" target=\"_blank\" rel=\"noopener\">https:\/\/xdsoft.net\/jqplugins\/datetimepicker\/<\/a><\/p>\n<h3><span id=\"GitHub\">GitHub<\/span><\/h3>\n<p><a href=\"https:\/\/github.com\/xdan\/datetimepicker\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/xdan\/datetimepicker<\/a><\/p>\n<h3><span id=\"CDN\">CDN<\/span><\/h3>\n<p><a href=\"https:\/\/cdnjs.com\/libraries\/jquery-datetimepicker\" target=\"_blank\" rel=\"noopener\">https:\/\/cdnjs.com\/libraries\/jquery-datetimepicker<\/a><\/p>\n<p><a href=\"https:\/\/www.jsdelivr.com\/package\/npm\/jquery-datetime-picker\" target=\"_blank\" rel=\"noopener\">https:\/\/www.jsdelivr.com\/package\/npm\/jquery-datetime-picker<\/a><\/p>\n<p>&nbsp;<\/p>\n<h2>\u5bfe\u5fdc\u65b9\u6cd5<\/h2>\n<h3>\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9<\/h3>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">&lt;input type=\"text\" id=\"date\"&gt;\r\n\r\n&lt;script type=\"text\/javascript\" src=\"https:\/\/code.jquery.com\/jquery-3.7.1.min.js\"&gt;&lt;\/script&gt;\r\n&lt;script src=\" https:\/\/cdn.jsdelivr.net\/npm\/jquery-datetime-picker@2.5.11\/build\/jquery.datetimepicker.full.min.js \"&gt;&lt;\/script&gt;\r\n&lt;link href=\" https:\/\/cdn.jsdelivr.net\/npm\/jquery-datetime-picker@2.5.11\/jquery.datetimepicker.min.css \" rel=\"stylesheet\"&gt;\r\n\r\n&lt;script&gt;\r\n$.datetimepicker.setLocale(`ja`);\r\n$(`#date`).datetimepicker({\r\n    format: `Y-m-d H:i:s`,\r\n    \/\/\u65e5\u4ed8\u9078\u629e\u6642\u306e\u51e6\u7406\r\n    onSelectDate:function(date, obj){\r\n        console.log(`\u65e5\u4ed8\u304c\u9078\u629e\u3055\u308c\u307e\u3057\u305f\u3002`);\r\n    },\r\n    \/\/\u6642\u9593\u9078\u629e\u6642\u306e\u51e6\u7406\r\n    onSelectTime: function(time, obj){\r\n        console.log(`\u6642\u9593\u304c\u9078\u629e\u3055\u308c\u307e\u3057\u305f\u3002`);\r\n    }\r\n});\r\n&lt;\/script&gt;<\/pre>\n<p>\u300conSelectDate:function\u300d\u306edate\u3084time\u306f\u9078\u629e\u3057\u305f\u65e5\u6642\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u683c\u7d0d\u3055\u308c\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>jQuery\u306e\u300cDateTimePicker\u300d\u30d7\u30e9\u30b0\u30a4\u30f3\u3067\u65e5\u4ed8\u3084\u6642\u9593\u9078\u629e\u6642\u3001\u3042\u3089 ... <\/p>\n","protected":false},"author":1,"featured_media":1071,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[3,4],"tags":[],"class_list":["post-6462","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-jquery","category-javascript"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/posts\/6462","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/comments?post=6462"}],"version-history":[{"count":2,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/posts\/6462\/revisions"}],"predecessor-version":[{"id":6464,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/posts\/6462\/revisions\/6464"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/media\/1071"}],"wp:attachment":[{"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/media?parent=6462"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/categories?post=6462"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/tags?post=6462"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}