Display Templates wrong date

There is this issue, the date in display template is not showing the correct date as per actual value stored in the SharePoint list. My guess is correct, it because of the Daylight Saving time. Changing the property from value to inputValue solve the issue.

var parsedDate = new Date($getItemValue(ctx, "TrainingDateOWSDATE").inputValue);

Solution found from: http://www.sharepointappie.nl/display-templates-wrong-date-formatting/

Leave a Reply

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