1

I have the below value printing the date as below:

Monday, January 1,
1800

But would like the date to split in the new line (only the Day) like below:

Monday
January 1, 1800

Salesforce Code:

<apex:outputText value="{0,date,EEEE',' MMMMM d',' yyyy}">
    <apex:param value="{c.CreatedDate}" />
</apex:outputText>

1 Answer 1

2

Try

<apex:outputText value="{0,date,EEEE'<br/>'MMMMM d',' yyyy}" escape="false">

enter image description here

Upvote the answer from the question below :) :

I don't know why '\n' new line is not working

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .