OWC11: How to set/change Date Format?

J

Jörg Wolf

Hi all,

I'm desparately trying to add/display date values from an array (or even a
tab separated string) as categories in a chart.
I'm using an english SBS2003, but the date values are in german standard
format (dd:mm:yy). As a result, the respecting values are not displayed in
the chart and the axis labels are improperly.

Is there any way to set the International property (which is read-only) to
fix the problem?

Is there any other solution?

Thanks in advance!

cheers
Jörg
 
A

Alvin Bruney - MVP ASP.NET

You can either set the locale on the machine to correct culture which should
force the date to display appropriately on the local machine. Or you can
force each item in the axis to display appropriately by looping thru the
items in the axis label property and using a numberformat. Ex .numberformat
= "MM/dd/yyyy"

--
Regards,
Alvin Bruney

Shameless Author Plug
[The Microsoft Office Web Components Black Book with .NET]
www.lulu.com/owc, Amazon, Barnes & Noble etc
Forth-coming VSTO.NET
 
J

Jörg Wolf

Alvin,

thanks for your quick reply!

Unfortunately, it doesn't help: the local _is_ set to German and I can't
loop through the axis labels because CategoryLabels.GetEnumerator() throws
an System.NotImplementedException...

cheers

Jörg

Alvin Bruney - MVP ASP.NET said:
You can either set the locale on the machine to correct culture which
should force the date to display appropriately on the local machine. Or
you can force each item in the axis to display appropriately by looping
thru the items in the axis label property and using a numberformat. Ex
.numberformat = "MM/dd/yyyy"

--
Regards,
Alvin Bruney

Shameless Author Plug
[The Microsoft Office Web Components Black Book with .NET]
www.lulu.com/owc, Amazon, Barnes & Noble etc
Forth-coming VSTO.NET
--------------------------------------------------------------------------------------------------------




Jörg Wolf said:
Hi all,

I'm desparately trying to add/display date values from an array (or even
a tab separated string) as categories in a chart.
I'm using an english SBS2003, but the date values are in german standard
format (dd:mm:yy). As a result, the respecting values are not displayed
in the chart and the axis labels are improperly.

Is there any way to set the International property (which is read-only)
to fix the problem?

Is there any other solution?

Thanks in advance!

cheers
Jörg
 

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