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

Changing time format on events in Month calendar

Asked by Philip Quirke
14 years ago.

I have been integrating the DayPilot into my website for the last few days. Have a look at a day or two (once I deploy).

My site displays timein the format"7am" or "8:15am"to save room (lowercase "am", no intervening space, remove trailing ":00"). I have implemented code to modify how events are displayed in the "Week View". However I can not work out how to modify the times shownin events in the "Month View" calendar. They currently show as say "7:00 AM" in top left and "8:15 AM" in top right. I want to show "7am" and "8:15am".

How can I do this?


Philip Q

Comment posted by Dan Letecky
14 years ago.
Hi Philip,

Sorry for the delay. I see that you've already found the solution.

There are three options:

1. Change the current culture, e.g.
<%@ Page Culture="en-US" ... %>
2. Change the TimeFormat property, e.g.
<DayPilot:DayPilotMonth TimeFormat="Clock12Hours" ... />
3. Modify the Month.js in the source code (this.drawEvent definition).

See also a related post on turning off the time labels:
Comment posted by Anonymous
10 years ago.


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