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

Have a question? Get answers now.

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