{"id":70,"date":"2008-09-18T01:43:26","date_gmt":"2008-09-17T23:43:26","guid":{"rendered":"https:\/\/interactive-developer.com\/blog\/?p=70"},"modified":"2018-05-08T22:30:09","modified_gmt":"2018-05-08T20:30:09","slug":"calculate-date-range","status":"publish","type":"post","link":"https:\/\/ixdc.net\/blog\/2008\/09\/18\/calculate-date-range\/","title":{"rendered":"Calculate Date Range"},"content":{"rendered":"<p>I was working on a weekly events module ..<br \/>\nAt some point I need to be able to get a list of week days by providing only on day, for example if I provide today date I expect the whole week contains today regardless to the current month or years ..<\/p>\n<p>The following example shows how we can do that, with some extra features ..<\/p>\n<p><object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" width=\"500\" height=\"300\" codebase=\"https:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=6,0,40,0\"><param name=\"scale\" value=\"noscale\" \/><param name=\"base\" value=\"https:\/\/ixdc.net\/blog\/wp-content\/uploads\/2008\/09\/dayrange\/\" \/><param name=\"src\" value=\"https:\/\/ixdc.net\/blog\/wp-content\/uploads\/2008\/09\/dayrange\/dayrange.swf\" \/><embed type=\"application\/x-shockwave-flash\" width=\"500\" height=\"300\" src=\"https:\/\/ixdc.net\/blog\/wp-content\/uploads\/2008\/09\/dayrange\/dayrange.swf\" base=\"https:\/\/ixdc.net\/blog\/wp-content\/uploads\/2008\/09\/dayrange\/\" scale=\"noscale\"><\/embed><\/object><br \/>\n<em>source code available via flash context menu<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was working on a weekly events module .. At some point I need to be able to get a list of week days by providing only on day, for example if I provide today date I expect the whole week contains today regardless to the current month or years .. The following example shows [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,8],"tags":[3,37,14],"class_list":["post-70","post","type-post","status-publish","format-standard","hentry","category-1","category-sep","tag-actionscript","tag-as3","tag-date"],"_links":{"self":[{"href":"https:\/\/ixdc.net\/blog\/wp-json\/wp\/v2\/posts\/70","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ixdc.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ixdc.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ixdc.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ixdc.net\/blog\/wp-json\/wp\/v2\/comments?post=70"}],"version-history":[{"count":1,"href":"https:\/\/ixdc.net\/blog\/wp-json\/wp\/v2\/posts\/70\/revisions"}],"predecessor-version":[{"id":1253,"href":"https:\/\/ixdc.net\/blog\/wp-json\/wp\/v2\/posts\/70\/revisions\/1253"}],"wp:attachment":[{"href":"https:\/\/ixdc.net\/blog\/wp-json\/wp\/v2\/media?parent=70"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ixdc.net\/blog\/wp-json\/wp\/v2\/categories?post=70"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ixdc.net\/blog\/wp-json\/wp\/v2\/tags?post=70"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}