Time Formatting issue
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.
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.
This discussion has been closed.
Comments
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.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
report builder calculation so I could...
FormatDateTime(LongDateFormat + ShortTimeFormat, varDate);
Thanks,
Yelena