Page 1 of 1

dateformat bug/incorrect documentation

Posted: Wed May 12, 2004 9:19 pm
by 8125097
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

Posted: Fri May 14, 2004 8:07 am
by Chris
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".

Ok, then please fix the help file

Posted: Mon May 17, 2004 6:33 pm
by 8125097
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.

Posted: Tue May 18, 2004 12:29 pm
by Clive
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