Toggle navigation
ReportBuilder Support Forums
Categories
Discussions
Activity
Sign In
Home
›
General
ReportBuilder 23.0 now available!
New Blog Posts: Merging Reports -
Part 1
and
Part 2
Print time zone
Davide
April 8
in
General
Hi all,
is there a me to add the time zone info to a datetime value?
Label_PrintedDatetime.Text := 'Printed on: ' + FormatDateTime('......', CurrentDatetime);
Thanks.
Comments
nicocizik
April 8
Hi Davide,
Delphi includes the DateUtils library which includes the ability to retrieve the time zone offset.
https://docwiki.embarcadero.com/Libraries/Alexandria//en/System.DateUtils.TTimeZone.GetUtcOffset
If you are using RAP, you will need to create a pass-thru function to access this functionality.
Best Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Sign In
or
Register
to comment.
Comments
Delphi includes the DateUtils library which includes the ability to retrieve the time zone offset.
https://docwiki.embarcadero.com/Libraries/Alexandria//en/System.DateUtils.TTimeZone.GetUtcOffset
If you are using RAP, you will need to create a pass-thru function to access this functionality.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com