Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Time Format changed after export to excel

SA-31645

Summary



Controls are used to display time in required format for a column in report definition and this report is sourced dynamically for a repeat grid.
On UI, the user is able to see date in correct desired format. But when they do an export to excel, it is getting changed into PEGA timestamp / GMT format.

Error Messages



Not applicable

Steps to Reproduce

  1.  Configure a section with report grid having report definition as the source.
  2. A button is configured to perform export to excel activity


Click on export to excel and time format is changed.

Root Cause



For export to excel (custom button), users are using a data page (sourced with the same report definition). In clipboard the value of the date is stored as GMT format thus displaying as-is in downloaded excel.

Resolution



Perform the following local-change:
  1. In the Data page used, added an activity under the Post load Processing space.
  2. In the activity, converted the DateTime from the data page to the desired format using the function @DateTime.FormatDateTime(<your property>,"MM/dd/YYYY",GMT,"").
Suggest Edit

Published December 24, 2016 - Updated October 8, 2020

Did you find this content helpful? Yes No

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us