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

Date is misaligned in Excel



Results of a report definition are exported to Excel. A date which is less than 12 is considered as text and displayed as the month (in text) and is right aligned. While the date that is greater than 12, is left aligned. 

Error Messages

Not Applicable

Steps to Reproduce

  1. Run the report.
  2. Export to excel. 

Root Cause

A third-party product issue: MS Excel.


Perform the following local-change: 
  1. Open the Export_Date or the Export_DateTime control.
  2. Perform a Save As of the HTML property specifying a new Stream Name, custom Ruleset, and Ruleset version.
  3. Enclose the existing code within the below <div> tags:

    <div class="excel-datetime" style=""> {existing code}</div> 
  4. Open the report definition rule.
  5. Add the new custom HTML property in the column Format values for the corresponding DateTime property field.
For more information, refer to:

Published January 30, 2019 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

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

Did you find this content helpful?

Want to help us improve this content?

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