I am updating a list and it's views (put together by another developer) and am adding a new date column.
Currently, there is/was an existing date column (in this case called Orig Due Date), and I added the new column, Revised Due Date.
Question I have is, Orig Due Date is formatting the date in a contextual way (2 days ago, Yesterday, Thursday, etc) and I cant seem to figure out how this is being done. There doesnt seem to be anything different in the column settings compared to my new Revised Due Date column, and I cant seem to figure out if it's some other JavaScript that is maybe doing it.
Any idea how I can apply the same formatting to my Revised Due Date column, or else remove the contextual formatting of Orig. Due Date?
Thanks!

Revised Due Datecolumn and converted it to a JS date, ievar newDate = Date("2015-08-12"). I then calledSP.DateTimeUtil.SPRelativeDateTime.getRelativeDateTimeString(newDate, true, SP.DateTimeUtil.SPCalendarType.none, false)but it then throws an error aboutUncaught TypeError: a.getFullYear is not a function. Any idea why? Am I not using it correctly? – Simon Aug 19 '15 at 07:36new: var newDate = new Date("2015-08-12"); – jcp Aug 19 '15 at 07:45Friendlysetting only returnsAugust 12and notAugust 12, 2015, which is preferred. So I will need to adjust the use ofgetRelativeDateTimeStringand append the year at the end to get the desired result. Thanks again! – Simon Aug 19 '15 at 08:02