{"id":359,"date":"2011-11-10T15:51:31","date_gmt":"2011-11-10T15:51:31","guid":{"rendered":"http:\/\/turtlellc.com\/?p=359"},"modified":"2011-11-10T15:51:31","modified_gmt":"2011-11-10T15:51:31","slug":"calculated-column-date-time-formats","status":"publish","type":"post","link":"https:\/\/www.turtle.works\/knowledge\/calculated-column-date-time-formats\/","title":{"rendered":"Calculated Column and Date Time Formats"},"content":{"rendered":"<p>After much searching I found some formats that work, but have not found a good reference document.<\/p>\n<p>To modify the format of a date or time, convert the column to text and apply these formats as needed.<\/p>\n<p>&nbsp;<\/p>\n<table>\n<tbody>\n<tr>\n<td>Month<\/td>\n<td>m, mm<\/td>\n<\/tr>\n<tr>\n<td>Day<\/td>\n<td>d, dd<\/td>\n<\/tr>\n<tr>\n<td>Year<\/td>\n<td>yy, yyyy<\/td>\n<\/tr>\n<tr>\n<td>Hour<\/td>\n<td>h, hh<\/td>\n<\/tr>\n<tr>\n<td>Minute<\/td>\n<td>m, mm<\/td>\n<\/tr>\n<tr>\n<td>Second<\/td>\n<td>s, ss<\/td>\n<\/tr>\n<tr>\n<td>AM\/PM<\/td>\n<td>AM\/PM<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Of course you need to go into SharePoint Designer and do a nowrap=&#8221;true&#8221; on the &lt;td&gt; if the date renders on 2 lines.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>After much searching I found some formats that work, but have not found a good reference document. To modify the format of a date or time, convert the column to text and apply these formats as needed. &nbsp; Month m, mm Day d, dd Year yy, yyyy Hour h, hh Minute m, mm Second s, &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.turtle.works\/knowledge\/calculated-column-date-time-formats\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Calculated Column and Date Time Formats&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[],"class_list":["post-359","post","type-post","status-publish","format-standard","hentry","category-sharepoint"],"_links":{"self":[{"href":"https:\/\/www.turtle.works\/knowledge\/wp-json\/wp\/v2\/posts\/359","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.turtle.works\/knowledge\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.turtle.works\/knowledge\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.turtle.works\/knowledge\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.turtle.works\/knowledge\/wp-json\/wp\/v2\/comments?post=359"}],"version-history":[{"count":0,"href":"https:\/\/www.turtle.works\/knowledge\/wp-json\/wp\/v2\/posts\/359\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.turtle.works\/knowledge\/wp-json\/wp\/v2\/media?parent=359"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.turtle.works\/knowledge\/wp-json\/wp\/v2\/categories?post=359"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.turtle.works\/knowledge\/wp-json\/wp\/v2\/tags?post=359"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}