search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Setting headerDateFormat has no effect

Asked by Esa
8 years ago.

Hello,

I'm using the daypilot calendar lite for javascript.

I was wondering if anyone here can tell me how to set the headerDateFormat? Here's what I currently have working:

var cal = new DayPilot.Calendar('dpcCalendar');
cal.days = 7;
cal.api = 2;
cal.DayFormat = 'dddd';
cal.timeFormat = 'Clock24Hours';
cal.headerDateFormat = 'dddd';
cal.Init();

Yet, the headers remain in default format. Only setting the locale will override it, but I need to display weekdays and I don't think there is a locale setting for such. There are no javascript errors etc on the chrome console and the calendar is drawn on the web page correctly otherwise.

What else do I need to do here to display weekday names on the headers?

cheers,

Answer posted by Dan Letecky [DayPilot]
8 years ago.

This property is supported since version 1.2 SP1 (build 171):

http://javascript.daypilot.org/daypilot-lite-for-javascript-1-2-sp1/

You are probably using an older version.

Let me know if the problem persists with the latest release.

Comment posted by Esa
8 years ago.

There we go, updating the library did the trick!

I thought it would be something different as it's not too long I downloaded the library but you guys seem to be developing quite actively, thanks for the great job!

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.