DayPilot Forums

DayPilot is the best open-source Outlook-like calendar control for ASP.NET.
DayPilot Pro Demo (Calendar control)
» DayPilot Pro live demo (Calendar control)
DayPilot Pro Demo (Scheduler control)
» DayPilot Pro live demo (Scheduler control)
Home » How To » change schedular time format

change schedular time format

Hi

How can i change the time format to look like in the- demo/Scheduler/Day.aspx

12AM ,1AM instead of 0,1

Thanks

Roiy

Roiy - 1/27/2008 2:45:09 PM
There are two ways to do it:
  • Set TimeFormat="Clock12Hours". I just realized that there is a bug in 4.4 that doesn't append "AM" or "PM" in the second row of the header (in the first line it's working fine). It's fixed now and the fix will be included in 4.5.
  • Change the text manually by handing BeforeTimeHeaderRender and modifying e.InnerHTML.
Dan Letecky - 2/3/2008 5:51:42 PM
Post reply