Displaying date range in report header of crystal reports

Posted on 2009-12-23
Last Modified: 2012-05-08
I have a report built in Crystal Reports 11.  I would like to display the minimum and maximum dates in the report header but cannot figure how to do.  Can anyone help?
Question by:OB1Canobie
    LVL 13

    Expert Comment

    Create a formula

    minimum({datefield} )

    and paint it on the report header?
    LVL 14

    Expert Comment

    I agree with PCI -

    If you want to print something like: Containing information from: 11/30/2009 to 12/06/2009

    you would do the following formula:

    "Containing information from: "
    & totext({Command.START_DATE}, 'MM/dd/yyyy')
    & " to " &
    totext({Command.END_DATE}, 'MM/dd/yyyy')
    LVL 100

    Accepted Solution

    Are you talking about the minimum and maximum dates in the data or in a date parameter range?

    For the minimum to maximum date in the data of a particular field.

    "Containing information from: "
    & totext({DateField}, 'MM/dd/yyyy')
    & " to " &
    totext({DateField}, 'MM/dd/yyyy')

    For a parameter
    "Containing information from: "
    & totext({?DateParam}, 'MM/dd/yyyy')
    & " to " &
    totext({?DateParam}, 'MM/dd/yyyy')


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Suggested Solutions

    I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
    Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now