function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Patrick DixonPatrick Dixon 

Date formatting problem: - The value attribute on <apex:outputText> is not in a valid format.

Has this bug been re-introduced again?

 

This worked in a dev organisation a few weeks ago:-

 

<apex:outputText value=" {0,date,dd MMMM yyyy}" >
     <apex:param value="{!content[0].Release_Date__c}" />
</apex:outputText>

 

But in a new dev org now gives a save error:

 

The value attribute on <apex:outputText> is not in a valid format. It must be a positive number, and of type Number, Date, Time, or Choice.

 

{!content[0].Release_Date__c}<br/>
{!content[0].CreatedDate}<br/>
 <apex:outputText value=" {0}" >
     <apex:param value="{!content[0].Release_Date__c}" />
</apex:outputText><br/>

 

displays:-

 

Thu Mar 24 00:00:00 GMT 2011
Thu Mar 24 12:12:06 GMT 2011
3/24/11 12:00 AM

 

and they are definitely date fields in a custom object.

 

How does one raise a bug?

aballardaballard

Are you sure the api version of the page is the same i nthe org where it works vs the page in the org where it doesn't?

Patrick DixonPatrick Dixon

Both are <apiVersion>20.0</apiVersion>