dateformat bug/incorrect documentation
Posted: 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
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