{"id":1902,"date":"2023-04-24T15:57:43","date_gmt":"2023-04-24T20:57:43","guid":{"rendered":"http:\/\/xlfxs.com\/?p=1844"},"modified":"2023-04-24T15:57:43","modified_gmt":"2023-04-24T20:57:43","slug":"jan8-date-format","status":"publish","type":"post","link":"https:\/\/xlfxs.com\/?p=1902","title":{"rendered":"Jan8 date format"},"content":{"rendered":"\n<p>Format a date in shortest format possible indicating how many days have passed (Past date)<\/p>\n\n\n\n<p>If date1-date2 &lt; 8 Sat, Fri, \u2026<br>If date1-date2 &lt; 350 Dec24, Jan4, Aug14<br>Else 2020Feb4<\/p>\n\n\n\n<!--more-->\n\n\n\n<p><code>=IF(AND(E34&lt;TODAY(), TODAY()-E34&lt;7), TEXT(E34,\"DDD\"), IF( AND(E34&lt;TODAY(), TODAY()-E34&lt;365), TEXT(E34, \"mmmd\"),TEXT(E34,\"yyyymmmd\")))<\/code><\/p>\n\n\n\n<p>Was thinking of this for a while now, trying to simplify as much as possible, and make as user-friendly as possible.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Format a date in shortest format possible indicating how many days have passed (Past date) If date1-date2 &lt; 8 Sat, Fri, \u2026If date1-date2 &lt; 350 Dec24, Jan4, Aug14Else 2020Feb4<\/p>\n","protected":false},"author":1,"featured_media":1850,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[68,23,3,80,35,6,60,8,61],"tags":[92,147,195,198],"class_list":["post-1902","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-and","category-date-and-time","category-formulas","category-if","category-logical","category-standard_functions","category-text","category-texts-and-strings","category-today","tag-and","tag-if","tag-text","tag-today"],"_links":{"self":[{"href":"https:\/\/xlfxs.com\/index.php?rest_route=\/wp\/v2\/posts\/1902","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xlfxs.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xlfxs.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xlfxs.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xlfxs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1902"}],"version-history":[{"count":0,"href":"https:\/\/xlfxs.com\/index.php?rest_route=\/wp\/v2\/posts\/1902\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xlfxs.com\/index.php?rest_route=\/wp\/v2\/media\/1850"}],"wp:attachment":[{"href":"https:\/\/xlfxs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1902"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xlfxs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1902"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xlfxs.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1902"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}