Jump to content
Software FX Community

Date format


User (Legacy)
 Share

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...