Page 1 of 1

date time format in Gantt series

Posted: Thu Aug 12, 2010 7:58 pm
by 10049023
Hi all,

I am using gantt series with datetime horizontal axis. My problem is that horizontal axis which is shown both in top and bottom, does not show datetime completely( like mm/dd/yyyy h:mm:ss AM/PM). If series datetime range is within a day, it show only "h:mm am/pm" and omits seconds. If series datetime range is more than a day, it omits time portion of datetime.

What settings is needed to have it completely?
Thanks,
Parisa

Re: date time format in Gantt series

Posted: Fri Aug 13, 2010 1:24 pm
by yeray
Hi Parisa,

You can change the DateTimeFormat for each axis:

Code: Select all

Chart1.Axes.Bottom.DateTimeFormat:='dd/mm/yyyy hh:nn:ss.zzz';
For more info about Dates and formats: http://www.delphibasics.co.uk/Article.asp?Name=Dates

Re: date time format in Gantt series

Posted: Fri Aug 13, 2010 1:57 pm
by 10049023
Thanks Yeray. It solved the problem.


Parisa

Re: date time format in Gantt series

Posted: Fri Aug 13, 2010 4:32 pm
by yeray
Hi Parisa,

You're welcome!