ax.NumberFormat = Date

I

IT Dep

Hi

When specifying a datatype of the Axes labels in an asp page using the chart
component of Office 2003 Web Components ho would I change the format that it
displays dates in. I was trying the following but it doesn't work!

ax.NumberFormat = "mm yyyy"

I want the dates to show in the format:

September 2004

I don't want the day number to show at all.

Also is it possible to have it put it a major marker for the year and the a
small marker for the month? Thanks for your help.

Dan
 
M

Man Manovich

This is from OWC help for NumberFormat element:

The NumberFormat element contains one of the following string constants
specifying the date or time format: General Date, Short Date, Medium Date,
Long Date, Short Time, Medium Time, or Long Time; one of the following
string constants specifying the numeric format: Currency, Fixed, General,
General Number, Percent, Scientific, or Standard (#,##0.00); one of the
following string constants specifying the Boolean values displayed: On/Off,
True/False, or Yes/No; a custom format string; or the string constant
General, specifying a general format that can be applied to any data type.
 
T

Thao Moua [ms]

Try this

ax.NumberFormat = "mmmm yyyy"

----------------------------------------------------------------------
Thao Moua
OWC Chartspace Support

This posting is provided "AS IS" with no warranties, and
confers no rights. Use of included script samples are
subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
----------------------------------------------------------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top