Date values on Xaxis

Thread is closed for posting
2 posts, 0 answers
  1. Filipe Peixinho
    Filipe Peixinho avatar
    41 posts
    Member since:
    May 2006

    Posted 30 Nov 2007 Link to this post

    I think it's a dumb question but I must put it here because I think I tried everything to get this done without success.
    Is there some kind of trick we must do to be able to show Datetime (shor date for now) values below the XAxis on a spline chart?
    I have a datatable wth two fields (Day and Value) and I'm trying to do a databing with this table and everything shows well except the date values. All I get is values between 1899 and 1900.
    I already checked if the data is arriving well and it is.
    Can some one help me on this one?

    Thanks in advance.
  2. Vlad
    Vlad avatar
    11100 posts

    Posted 05 Dec 2007 Link to this post

    Hi Filipe,

    To add dates to an axis or chart item, values must be converted to OleAutomation types.  Use the DateTime ToOADate() function for this purpose.  Please visit also this article for more info:

    All the best,
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. DevCraft R3 2016 release webinar banner
Back to Top