{"id":76,"date":"2015-12-16T11:58:27","date_gmt":"2015-12-16T08:58:27","guid":{"rendered":"http:\/\/antyat.ru\/?p=76"},"modified":"2015-12-16T11:58:27","modified_gmt":"2015-12-16T08:58:27","slug":"cakephp-3-datetime-picker","status":"publish","type":"post","link":"http:\/\/antyat.ru\/?p=76","title":{"rendered":"CakePHP 3 Datetime picker"},"content":{"rendered":"<p>[![Build Status](https:\/\/travis-ci.org\/smalot\/bootstrap-datetimepicker.svg?branch=master)](https:\/\/travis-ci.org\/smalot\/bootstrap-datetimepicker)<\/p>\n<p>[Homepage](http:\/\/www.malot.fr\/bootstrap-datetimepicker\/)<\/p>\n<p>[Demo page](http:\/\/www.malot.fr\/bootstrap-datetimepicker\/demo.php)<\/p>\n<pre> &lt;div class=\"input-append date form_datetime\" data-date=\"&lt;?= date(\"Y-m-dTh:i:sZ\") ?&gt;\"&gt;\r\n &lt;label for=\"begindate\"&gt;\u0417\u0430\u0434\u0430\u0447\u0430: \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043c\u044f \u043d\u0430\u0447\u0430\u043b\u0430&lt;\/label&gt;\r\n &lt;span class=\"add-on\"&gt;&lt;i class=\"icon-remove\"&gt;&lt;\/i&gt;&lt;\/span&gt;\r\n &lt;span class=\"add-on\"&gt;&lt;i class=\"icon-calendar\"&gt;&lt;\/i&gt;&lt;\/span&gt;\r\n &lt;input size=\"16\" type=\"text\" name=\"begindate\" value=\"\" readonly&gt;\r\n &lt;\/div&gt; \r\n \r\n &lt;div class=\"input-append date form_datetime\" data-date=\"&lt;?= date(\"Y-m-dTh:i:sZ\") ?&gt;\"&gt; \r\n &lt;label for=\"enddate\"&gt;\u0417\u0430\u0434\u0430\u0447\u0430: \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043c\u044f \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044f&lt;\/label&gt; \r\n &lt;span class=\"add-on\"&gt;&lt;i class=\"icon-remove\"&gt;&lt;\/i&gt;&lt;\/span&gt;\r\n &lt;span class=\"add-on\"&gt;&lt;i class=\"icon-calendar\"&gt;&lt;\/i&gt;&lt;\/span&gt;\r\n &lt;input size=\"16\" type=\"text\" name=\"enddate\" value=\"\" readonly&gt;\r\n &lt;\/div&gt;\r\n &lt;?php \r\n \/\/ echo $this-&gt;Form-&gt;input('begindate');\r\n \/\/ echo $this-&gt;Form-&gt;input('enddate');\r\n echo $this-&gt;Form-&gt;input('name');\r\n echo $this-&gt;Form-&gt;input('comment');\r\n ?&gt;\r\n \r\n\r\n \r\n&lt;script type=\"text\/javascript\"&gt;\r\n $(\".form_datetime\").datetimepicker({\r\n language: 'ru',\r\n format: \"yyyy-mm-dd hh:ii\",\r\n autoclose: true,\r\n todayBtn: true,\r\n startDate: \"&lt;?= date(\"Y-m-d\") ?&gt;\",\r\n minuteStep: 30\r\n });\r\n&lt;\/script&gt;<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>[![Build Status](https:\/\/travis-ci.org\/smalot\/bootstrap-datetimepicker.svg?branch=master)](https:\/\/travis-ci.org\/smalot\/bootstrap-datetimepicker) [Homepage](http:\/\/www.malot.fr\/bootstrap-datetimepicker\/) [Demo page](http:\/\/www.malot.fr\/bootstrap-datetimepicker\/demo.php) &lt;div class=&#187;input-append date form_datetime&#187; data-date=&#187;&lt;?= date(&#171;Y-m-dTh:i:sZ&#187;) ?&gt;&#187;&gt; &lt;label for=&#187;begindate&#187;&gt;\u0417\u0430\u0434\u0430\u0447\u0430: \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043c\u044f \u043d\u0430\u0447\u0430\u043b\u0430&lt;\/label&gt; &lt;span class=&#187;add-on&#187;&gt;&lt;i class=&#187;icon-remove&#187;&gt;&lt;\/i&gt;&lt;\/span&gt; &lt;span class=&#187;add-on&#187;&gt;&lt;i class=&#187;icon-calendar&#187;&gt;&lt;\/i&gt;&lt;\/span&gt; &lt;input size=&#187;16&#8243; type=&#187;text&#187; name=&#187;begindate&#187; value=&#187;&#187; readonly&gt; &lt;\/div&gt; &lt;div class=&#187;input-append date form_datetime&#187; data-date=&#187;&lt;?= date(&#171;Y-m-dTh:i:sZ&#187;) ?&gt;&#187;&gt; &lt;label for=&#187;enddate&#187;&gt;\u0417\u0430\u0434\u0430\u0447\u0430: \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043c\u044f \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044f&lt;\/label&gt; &lt;span class=&#187;add-on&#187;&gt;&lt;i class=&#187;icon-remove&#187;&gt;&lt;\/i&gt;&lt;\/span&gt; &lt;span class=&#187;add-on&#187;&gt;&lt;i class=&#187;icon-calendar&#187;&gt;&lt;\/i&gt;&lt;\/span&gt; &lt;input size=&#187;16&#8243; type=&#187;text&#187; name=&#187;enddate&#187; value=&#187;&#187; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-76","post","type-post","status-publish","format-standard","hentry","category-1"],"_links":{"self":[{"href":"http:\/\/antyat.ru\/index.php?rest_route=\/wp\/v2\/posts\/76","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/antyat.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/antyat.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/antyat.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/antyat.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=76"}],"version-history":[{"count":5,"href":"http:\/\/antyat.ru\/index.php?rest_route=\/wp\/v2\/posts\/76\/revisions"}],"predecessor-version":[{"id":81,"href":"http:\/\/antyat.ru\/index.php?rest_route=\/wp\/v2\/posts\/76\/revisions\/81"}],"wp:attachment":[{"href":"http:\/\/antyat.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=76"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/antyat.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=76"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/antyat.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=76"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}