Jump to content
Software FX Community

Problems getting dates to show up according to custom format


User (Legacy)
 Share

Recommended Posts

I have tried specifying the format "YYYY-DD-MMM"

CString fmt = "DYYYY-DD-MMM"

CComVariant var((LPCSTR)fmt );

chart_fx->GetAxis()->GetItem( AXIS_Y )->PutFormat( var );

When the dates are displayed on the y axis all I see is something liked

YYYY-DD-Nov, YYYY-DD-Dec, YYYY-DD-Jan

What am I doing wrong here? Also these are not string labels....I am

attempting to have chartfx calculate the string accordingly.

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...