{"id":119,"date":"2008-11-17T13:58:04","date_gmt":"2008-11-17T17:58:04","guid":{"rendered":"http:\/\/muthii.com\/blog\/?p=119"},"modified":"2008-11-17T13:58:04","modified_gmt":"2008-11-17T17:58:04","slug":"date-edited-auto-update","status":"publish","type":"post","link":"https:\/\/muthii.com\/blog\/?p=119","title":{"rendered":"Date Edited Auto-Update"},"content":{"rendered":"<p>I was using dreamweaver to edit my webpages which uses it&#8217;s own auto update on save date code&lt;!&#8211; #BeginDateformat:Am1 &#8211;&gt;May 5, 2005&lt;!&#8211; #EndDate &#8211;&gt; (Dreamweaver&#8217;s Auto-Update-on-Save Date Code). When I switched to bluefish as my main editor the auto update code wouldn&#8217;t work. So I looked around and found a php code to get the same thing done. Just place it anywhere you want the date to appear<\/p>\n<p>&lt;?php echo date(&#8216;F j, Y&#8217;, filemtime(__FILE__));?&gt;<\/p>\n<p>If you want to store it to a variable you can do<\/p>\n<p>$variable_date = date(&#8216;F j, Y&#8217;, filemtime(__FILE__));<\/p>\n<p>You can exchange filemtime with filectime if you want to display the date the file was created.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was using dreamweaver to edit my webpages which uses it&#8217;s own auto update on save date code&lt;!&#8211; #BeginDateformat:Am1 &#8211;&gt;May 5, 2005&lt;!&#8211; #EndDate &#8211;&gt; (Dreamweaver&#8217;s Auto-Update-on-Save Date Code). When I switched to bluefish as my main editor the auto update code wouldn&#8217;t work. So I looked around and found a php code to get the &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/muthii.com\/blog\/?p=119\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Date Edited Auto-Update&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,10],"tags":[41,43,42],"_links":{"self":[{"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/119"}],"collection":[{"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=119"}],"version-history":[{"count":1,"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/119\/revisions"}],"predecessor-version":[{"id":120,"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/119\/revisions\/120"}],"wp:attachment":[{"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=119"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=119"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=119"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}