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 format is changed in excel when summary func is used in RD



When summary function is used for a column in a report defiition with a date column and when the Report Definition is executed,  the date is shown in correct format. However,  when the data is exported to excel the date format shown is in 24hrs format although in UI we see it as 12 hrs format


This issue is resolved through the following local change: 

ClipboardProperty curProp = tools.getActive();
if ((curProp.getType() == PropertyInfo.TYPE_DATE || curProp.getType() == PropertyInfo.TYPE_DATETIME)&& curProp.size() > 0 && curProp.hasValidValue() && curProp.toDate()!=null)  {
    String sDatetime="";
    String type = tools.getParamValue("DateTimeFormat");
    String strTimeZone = tools.findPage("pxRequestor").getString(".pyUseTimeZone");

    sDatetime = PRDateFormat.format(null, strTimeZone, PRDateFormat.DEFAULT_DATETIME_LONG, curProp.toDate()); 
else {

<pega:reference name="$save(result)" />

Published January 31, 2016 - 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