In the Scheduler, there are two ways to set the column HTML:
1. You can use Columns property of the Resource object (when loading the resources). This is what you are probably using now:
Resource r = new Resource("Resource 1", "1"); // the default column (column 0)
r.Columns.Add(new ResourceColumn("Column 1")); // additional column #1
r.Columns.Add(new ResourceColumn("Column 2")); // additional column #1
Resources.Add(r);
2. You can also modify the HTML using OnBeforeResHeaderRender:
protected override void OnBeforeResHeaderRender(BeforeResHeaderRenderArgs e)
{
e.Html = "Resource 1";
e.Columns[0].Html = "Column 1";
e.Columns[1].Html = "Column 2";
}
In both cases, you can use DateTime.ToString(format) to provide custom date/time format.
Example:
DateTime start = ...;
DateTime end = ...;
Resource r = new Resource("Resource 1", "1"); // the default column (column 0)
r.Columns.Add(new ResourceColumn(start.ToString("MM/dd/yyyy H:mm:ss"))); // additional column #1
r.Columns.Add(new ResourceColumn(end.ToString("MM/dd/yyyy H:mm:ss"))); // additional column #2
Resources.Add(r);
For the list of the format pattern elements please see: https://msdn.microsoft.com/en-us/library/8kb3ddd4(v=vs.110).aspx
Use "H"/"HH" for 24-hour format.
Use "h"/"hh" for 12-hour format.