Tag Info

New answers tagged


If I understood you correct you want to set your date as yesterday, two days ago, etc. and not just to see actual date 18.08.2015. If so, there is choice field when creating date column, name of that field is Display Format. you should choose Friendly option, default option is Standard. I do apologize if you meant something different to ask.


In case you use JavaScript: First of all you need a reference to SP.dateTimeUtil.js: <script type="text/javascript" src="/_layouts/15/SP.dateTimeUtil.js"></script> This file contains a JavaScript function called getRelativeDateTimeString() accepting four parameters: Date ISO8601 IncludeTime CalendarType AdjustToServersNowTime You call the ...


The formatting is done server-side, you would have to replicate it (and and the Today difference calculation) either in a Calculated Column or with CSR - Client Side Rendering This StackOverflow post explains why/how: How to use Today and Me in Calculated column

Top 50 recent answers are included