Compare and Format Start Date and End Date in SharePoint Item Style

This compares your Start Date and End Date and displays accordingly.

Different Year
January 1, 2012 – January 1, 2013

Same Year, Different Month
January 1 – February 1, 2012

Same Year, Same Month, Different Day
January 1 – 5, 2012

Same Year, Same Month, Same Day
January 1, 2012

 

Simply copy the attached into your custom item style where you’d like the date span to appear.

compare-dates

 

This assumes you have some knowledge of item styles and just need to output your dates in this fashion. Please if you need further assistance just post your questions in the comments and I’ll reply as soon as possible. Thanks!

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

3 × 5 =