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

Trailing space for Date-Long-i18n format



User is using CorrNew rule and adding property that is date.

Once Email is generated, extra space is added between date and ".".

As the format is "Date-Long-i18n" so one cannot update format='scaler' to remove the extra space.

Note: User is using ConverttoPDF activity to convert the email into PDF and send as attachment.

Error Messages

Not Applicable

Steps to Reproduce

1. Add corrNew rule.
2. Add property that have date and "."
3. Run and check the email.

Root Cause

Not Applicable


Use the following solutions:

Date population issue in date in day light timing:
Date date = PRDateFormat.parseAsDate(null, null, null,tools.getPrimaryPage().getString(".TestDateProp"));

my decimal value <% tools.appendString(
PRNumberFormat.format(null,PRNumberFormat.DEFAULT_DECIMAL,true,null,tools.getPrimaryPage().getDouble("myDec")) );

my decimal value <% tools.appendString(
PRNumberFormat.format("en_US",PRNumberFormat.DEFAULT_CURRENCY,true,null,tools.getPrimaryPage().getDouble("myDec")) );

Space issue in DateLong property:
<% tools.appendString(
PRDateFormat.format("test","test",PRDateFormat.DEFAULT_DATE_LONG,tools.getPrimaryPage().getDate("myDateProp")) );

Published May 4, 2017 - 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