Skip to Content

Crystal Reports: time cut off from datetime field

While working on a report, I just noticed that making the datetime field smaller but taller on the report cuts the part of the time section. The option "Can grow" is also greyed out, I find. Is there a way to make both the date and time in the datetime field appear in two lines?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Feb 18, 2019 at 04:28 PM

    You would have to create two formulas - one for the date and the other for the time. They will look like this:

    {@DateofDateTime}
    Date({MyTable.DateTimeField})
    
    {@TimeofDateTime}
    Time({MyTable.DateTimeField})
    

    Then do the following:

    1. Place a text box on the report. Turn on "Can Grow" for it.

    2. Drag {@DateofDateTime} into the text box.

    3. Place your cursor at the end of the formula you just added to the text box and press "Enter".

    4. Drag {@TimeofDateTime} into the text box so that it is below the date.

    -Dell

    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.