Date format in XML bound Chart

Posted on 2012-08-14
Medium Priority
Last Modified: 2012-08-30
I'm trying to change the date format on the axis of a chart so it displays UK format.  The date comes in the format 2012-08-14.
Whatever I try is ignored.
Chart5.Series(0).XValueType = ChartValueType.DateTime
Chart5.ChartAreas(0).AxisX.LabelStyle.Format = "MMM d"
Question by:Gary
LVL 23

Accepted Solution

Christopher Kile earned 2000 total points
ID: 38352595
What sort of date data are you reading from the XML?  Chart requires that your date values be in decimal format (use .ToOADate() to convert).

LVL 58

Author Comment

ID: 38352604
Wow old question, don't need it anymore.

Featured Post

Granular recovery for Microsoft Exchange

With Veeam Explorer for Microsoft Exchange you can choose the Exchange Servers and restore points you’re interested in, and Veeam Explorer will present the contents of those mailbox stores for browsing, searching and exporting.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…

750 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question