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
dateformat bug/incorrect documentation
-
- Newbie
- Posts: 16
- Joined: Fri Apr 16, 2004 4:00 am
- Location: Chicago
- Contact:
-
- Site Admin
- Posts: 1349
- Joined: Thu Jan 01, 1970 12:00 am
- Location: Riudellots de la Selva, Catalonia
- Contact:
Hi Brian,
http://msdn.microsoft.com/library/defau ... stopic.asp
The AM/PM designator is "tt".
See: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?
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/
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/
-
- Newbie
- Posts: 16
- Joined: Fri Apr 16, 2004 4:00 am
- Location: Chicago
- Contact:
Ok, then please fix the help file
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.
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.