Skip to Content
author's profile photo Former Member
Former Member

Time field invalid data

Post Author: bbazian

CA Forum: General

I have a MySQL database with a date and a time field. The date field reports correctly in CRXI but I am unable to get the time field to work. Is there something I need to know on how to format this? I know the data is correct in the database as HH:MM:SS but CR reports it as 12:00:00 am for all records.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2007 at 05:18 AM

    Post Author: Jagan

    CA Forum: General

    In the field browser, does Crystal report the field as being a Date or a DateTime?

    Crystal did this to me once too, and I seem to remember finding a 'Convert datetime to date' box that was ticked somewhere in the Options or Report Options menu item.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2007 at 10:35 AM

    Post Author: bbazian

    CA Forum: General

    I did a work around. Changed the MySQL field to a char field and then parsed it and converted it to a time field in the report.

    Thanks

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.