Jump to content
Software FX Community

Date format


User (Legacy)

Recommended Posts

Hello,

I'm not sure I understand the help about formatting axis ...

from the help file :

If the Format has been set as Date, this line of code will display the month

name:

Chart1.AxisX.LabelsFormat.CustomFormat = "MMM"

sample from the help ...

Chart1.AxisX.LabelsFormat.FormatDateTime(date2Format

HOW do I set the format as Date (I tried but nothing has changed)????

Any nice and clear sample(s) would be appreciate.

Thanks,

Aristide.

Link to comment
Share on other sites

Chart1.AxisY.LabelsFormat.Format = AxisFormat.Date

Chart1.AxisY.LabelsFormat.CustomFormat = "dd-MMM-yy"

Will display:

01-Jan-01

If you need more information on what characters you can use in the

CustomFormat string, please refer to .NET's framework docs. Specifically

look for topics titled:

"Custom DateTime Format Strings"

"Standard DateTime Format Strings"

--

FP

Software FX

Link to comment
Share on other sites

Sorry, I did not tell that I was using Fx for Webmatrix so I have the

follwing error:

BC30456: 'Date' is not a member of

'SoftwareFX.ChartFX.WebMatrix.AxisFormat'.

Any example for Webmatrix?

thanks,

Aristide

"SoftwareFX Support" <noreply@softwarefx.com> wrote in message

news:eym1aTyGEHA.200@webserver3.softwarefx.com...

>

> Chart1.AxisY.LabelsFormat.Format = AxisFormat.Date

> Chart1.AxisY.LabelsFormat.CustomFormat = "dd-MMM-yy"

>

>

> Will display:

>

> 01-Jan-01

>

> If you need more information on what characters you can use in the

> CustomFormat string, please refer to .NET's framework docs. Specifically

> look for topics titled:

>

> "Custom DateTime Format Strings"

> "Standard DateTime Format Strings"

>

> --

> FP

> Software FX

>

>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...