{"id":700,"date":"2013-06-21T07:48:08","date_gmt":"2013-06-21T07:48:08","guid":{"rendered":"http:\/\/codeatelier.wordpress.com\/?p=511"},"modified":"2016-08-24T08:45:41","modified_gmt":"2016-08-24T08:45:41","slug":"how-to-get-previous-day-particular-day-in-a-week","status":"publish","type":"post","link":"https:\/\/codethataint.com\/blog\/how-to-get-previous-day-particular-day-in-a-week\/","title":{"rendered":"How to get Previous Day (Particular Day)  in a Week"},"content":{"rendered":"<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\nCalendar cal = Calendar.getInstance();\r\nint daysBackToSat = cal.get(Calendar.DAY_OF_WEEK );\t\t\t\r\n\r\nif(daysBackToSat&amp;lt;7) \r\n{\r\n  daysBackToSat += 7;\r\n}\r\n\r\ncal.add(Calendar.DATE, daysBackToSat*-1);\r\nSystem.out.println(sdf.format(cal.getTime()));\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Calendar cal = Calendar.getInstance(); int daysBackToSat = cal.get(Calendar.DAY_OF_WEEK ); if(daysBackToSat&amp;lt;7) { daysBackToSat += 7; } cal.add(Calendar.DATE, daysBackToSat*-1); System.out.println(sdf.format(cal.getTime()));<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-700","post","type-post","status-publish","format-standard","hentry","category-date-and-time"],"_links":{"self":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/700","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=700"}],"version-history":[{"count":1,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/700\/revisions"}],"predecessor-version":[{"id":1467,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/700\/revisions\/1467"}],"wp:attachment":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/media?parent=700"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/categories?post=700"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/tags?post=700"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}