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

Alignment issue in exported Excel for DateTime property



In the exported Excel, the Received Date column value alignment varies in multiple rows. For some rows, this column value is left aligned; while for other rows, the value is right aligned.

Error Messages

Not Applicable

Steps to Reproduce


Root Cause

A third-party product  issue: MS Excel.


Perform the following local-change:
  1. Open the Export_DateTime HTML rule instance on the system.
  2. Perform a Save As of the HTML property and specify a new Stream Name, custom Ruleset, and Ruleset version.
  3. Update the new HTML property to add the code below the existing code (in the below <div> tag the style must be the format which must be exported to Excel.)

    <div class="excel-datetime" style=""> 
    {existing code}

  4. Open the report definition rule to update it.
  5. Add the new custom HTML property in the column.
  6. Format values for the corresponding DateTime property field.
  7. Save the rules.
  8. Execute the report definition and perform an Export to Excel.
Suggest Edit

Published January 30, 2019 - Updated October 8, 2020

Did you find this content helpful? Yes No

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.

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