dateformat bug/incorrect documentation

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Brian Begy
Newbie
Newbie
Posts: 16
Joined: Fri Apr 16, 2004 4:00 am
Location: Chicago
Contact:

dateformat bug/incorrect documentation

Post by Brian Begy » Wed May 12, 2004 9:19 pm

Hi. I have a datatable that contains a column of dates and a column of integers. I am graphing the dates on the x axis of a points chart and the integers on the y axis.

The date label formats do not behave as the documentation would indicate. It says that
mygraph.Chart.Axes.Bottom.Labels.DateTimeFormat = "hh:mm am/pm"

should give me something like
05:00 pm

Instead I get
05:00 a0/p0

Clearly the formatter is interpreting the m's in am/pm as minutes. I tried enclosing am/pm in brackets and quotes, but that has no effect. How do I get am/pm to show up correctly?

-Brian

Christopher
Site Admin
Site Admin
Posts: 1349
Joined: Thu Jan 01, 1970 12:00 am
Location: Riudellots de la Selva, Catalonia
Contact:

Post by Christopher » Fri May 14, 2004 8:07 am

Hi Brian,
Clearly the formatter is interpreting the m's in am/pm as minutes. I tried enclosing am/pm in brackets and quotes, but that has no effect. How do I get am/pm to show up correctly?
See:
http://msdn.microsoft.com/library/defau ... stopic.asp

The AM/PM designator is "tt".
Thank you!

Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/

Brian Begy
Newbie
Newbie
Posts: 16
Joined: Fri Apr 16, 2004 4:00 am
Location: Chicago
Contact:

Ok, then please fix the help file

Post by Brian Begy » Mon May 17, 2004 6:33 pm

So the documentation in the help file is wrong then. Shouldn't this be considered a problem?

If I have a question about tee chart date formats, I'm not going to look up the answer on msdn, I'm going to use the (incorrect) help file that shipped with tee chart.

Clive
Newbie
Newbie
Posts: 1
Joined: Tue Dec 02, 2003 5:00 am

Post by Clive » Tue May 18, 2004 12:29 pm

Thanks for pointing out the error to us, the TeeChart help topic is misleading.
It has been logged to be corrected for inclusion in the next maintenance release.

Regards,
Clive Peabody

Post Reply