This project has moved and is read-only. For the latest updates, please go here.

change format date of header 1

May 3, 2013 at 4:33 AM
Please tell me how to change formart date of header 1 to dd/MM/YYYY?.
May 3, 2013 at 5:36 AM
Edited May 3, 2013 at 5:37 AM
Hi Sonit,

Thank you for trying/using the gantt chart control.

There is no built in way to change the header 1 date format, but if you download the source code and look in chart.cs, at about line 1208, you can find the code

graphics.DrawString(date.ToShortDateString(), e.Font, e.Format.Color, h1textrect);

change the ToShortDateString() to ToString("DD/MM/YYYY")

Hope it helps.

I will also update the source code in the near future to add this feature. Thanks for your feedback!