in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Problems with DateTime Variable in a Chart in a Report..

Last post 05-19-2008 9:24 AM by manstett. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 05-14-2008 5:47 PM

    Problems with DateTime Variable in a Chart in a Report..

    I am creating a report with an embedded C1Chart.

    I am creating a bar chart using a DateTime variable from SQL Server as one axis. If I allow it to display the default format the data appears correctly. Since the default shows both date and time, I want to use a custom format to display only the Date. If I enter ANY formatting in the Format field, I get garbage, The dates all display starting in 1899.

    Is there a trick to getting formatted dates on a chart - or is this a bug?

     

    Bob M

  • 05-19-2008 9:24 AM In reply to

    Re: Problems with DateTime Variable in a Chart in a Report..

     I didn't use the Format field because I was getting mixed results, so I just use something like this in the DataX field:

      FORMAT([Date1], "MM/dd/yy")

     

    HTH

Page 1 of 1 (2 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.