{"id":753,"date":"2015-03-19T06:11:40","date_gmt":"2015-03-19T06:11:40","guid":{"rendered":"http:\/\/codethataint.com\/blog\/?p=753"},"modified":"2015-03-19T10:52:24","modified_gmt":"2015-03-19T10:52:24","slug":"extracting-gmt-time-for-day","status":"publish","type":"post","link":"https:\/\/codethataint.com\/blog\/extracting-gmt-time-for-day\/","title":{"rendered":"Extracting GMT Time for Day"},"content":{"rendered":"<p><strong>Getting GMT Time for the Day<\/strong><\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n var strDate = new Date();\r\n\r\n hour = strDate.getUTCHours().toString();\r\n minute = strDate.getUTCMinutes().toString();\r\n second = strDate.getUTCSeconds().toString();\r\n\r\n if (hour.length == 1) { hour = &quot;0&quot; + hour; }\r\n if (minute.length == 1) { minute = &quot;0&quot; + minute; }\r\n if (second.length == 1) { second = &quot;0&quot; + second; }\r\n\r\n Cal.SetHour(hour); \r\n Cal.SetMinute(minute); \r\n Cal.SetSecond(second);\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Getting GMT Time for the Day var strDate = new Date(); hour = strDate.getUTCHours().toString(); minute = strDate.getUTCMinutes().toString(); second = strDate.getUTCSeconds().toString(); if (hour.length == 1) { hour = &quot;0&quot; + hour; } if (minute.length == 1) { minute = &quot;0&quot; + minute; } if (second.length == 1) { second = &quot;0&quot; + second; } Cal.SetHour(hour); Cal.SetMinute(minute);&hellip; <a href=\"https:\/\/codethataint.com\/blog\/extracting-gmt-time-for-day\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[146],"tags":[],"class_list":["post-753","post","type-post","status-publish","format-standard","hentry","category-date-and-time-javascript"],"_links":{"self":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/753","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/comments?post=753"}],"version-history":[{"count":3,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/753\/revisions"}],"predecessor-version":[{"id":761,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/753\/revisions\/761"}],"wp:attachment":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/media?parent=753"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/categories?post=753"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/tags?post=753"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}