Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Date Formats

edited January 2004 in General
I assumed that RBuilder inherited the data formatting to which Windows was
set. That does not seem to be the case. Therefore, I need to add code to
make RBuilder 7.03 use a certain data format by default. I don't want to
make the users alter the display format of every date field in every report.
How can I do that?

Thanks,
Bob Tucker

Comments

  • edited January 2004
    Hi Bob,

    ReportBuilder gets it's date formatting from Delphi, which in turn gets them
    from Windows. If you would like to see how this is done, please see the
    code in the TppDisplayFormat class located in the ppDisplayFormat.pas file.
    From there it is possible to override the existing formats with your own.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited January 2004
    I can change the Windows date format and the delphi application follows that
    fomat with no problem with the exception of the reports. The dates in the
    grids and data entry screens follow the Windows date format with no code
    changes. However, the same data displayed in the reports remain in the US
    date format. I can't see where I have set a propertly to RBuilder to cause
    this.

    I understand what you are saying but it doesn't seem to me that RBuilder is
    following the same date format as the Delphi application. I don't want to
    override it. I just want RBuilder to use the same date format that the
    Delphi application is using which it is inheriting the format from Windows.
    I can change the Windows format and instantly, dates appear in the new
    format in the application with the exception of the report generation.

    Thanks,
    Bob

  • edited January 2004
    If only I could erase something I post here. Cancel that, I see the
    problem. Someone has gone through the reports and manually entered a
    display format.

    Sorry,
    Bob Tucker

This discussion has been closed.