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

Time Formatting issue

edited March 2004 in General
I am using RB 7.03.
I am placing a dbtext component onto a report and setting it to datetime
field. If I change the time formatt in regional settings from military to
am/pm it changes on the report, however, it does not remove seconds if I
have the time formatt set to only show the hours and minutes.

Thanks,
Yelena

PS Will you be adding an undue anytime soon.

Comments

  • edited March 2004
    Hi Yelena,

    ReportBuilder uses the Delphi build in function FormatDateTime to get the
    windows regional settings for the time format. Unfortunately, when using
    the FormatDateTime method, you have a choice to either give it the
    ShortTimeFormat TFormatSettings Type which is what you want, or
    LongTimeFormat, which shows the seconds. ReportBuilder by default uses the
    LongTimeFormat, which can be changed using the DisplayFormat property of the
    dbText component.

    An Undo feature is definitely on our wish list for future enhancements.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited March 2004
    Is there anyway to retrieve the ShortTimeFormat global system variable in a
    report builder calculation so I could...

    FormatDateTime(LongDateFormat + ShortTimeFormat, varDate);

    Thanks,

    Yelena


This discussion has been closed.