This project has moved. For the latest updates, please go here.

change format date of header 1

May 3, 2013 at 3:33 AM
Please tell me how to change formart date of header 1 to dd/MM/YYYY?.
Coordinator
May 3, 2013 at 4:36 AM
Edited May 3, 2013 at 4: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!