date time format in Gantt series

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
GlobeStar
Newbie
Newbie
Posts: 5
Joined: Thu May 15, 2008 12:00 am

date time format in Gantt series

Post by GlobeStar » Thu Aug 12, 2010 7:58 pm

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

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: date time format in Gantt series

Post by Yeray » Fri Aug 13, 2010 1:24 pm

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
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

GlobeStar
Newbie
Newbie
Posts: 5
Joined: Thu May 15, 2008 12:00 am

Re: date time format in Gantt series

Post by GlobeStar » Fri Aug 13, 2010 1:57 pm

Thanks Yeray. It solved the problem.


Parisa

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: date time format in Gantt series

Post by Yeray » Fri Aug 13, 2010 4:32 pm

Hi Parisa,

You're welcome!
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply