Note –
Visualforce Code –
<!– 1st , 21st , 31st–>
Day(Inspection_Sheet__c.Date__c ) = 31 , TRUE, FALSE) }” >
<apex:outputText value=”{0,date,dd}<sup>st</sup> {0,date,MMMM} {0,date,YYYY} ” escape=”false” >
<apex:param value=”{!Inspection_Sheet__c.Date__c}” />
</apex:outputText>
</apex:outputpanel>
<!–2nd , 22nd –>
<apex:outputpanel rendered=”{!IF(Day(Inspection_Sheet__c.Date__c ) = 2 || Day(Inspection_Sheet__c.Date__c ) = 22 , TRUE, FALSE) }” >
<apex:outputText value=”{0,date,dd}<sup>nd</sup> {0,date,MMMM} {0,date,YYYY} ” escape=”false” >
<apex:param value=”{!Inspection_Sheet__c.Date__c}” />
</apex:outputText>
</apex:outputpanel>
<!– 3rd , 23rd –>
<apex:outputpanel rendered=”{!IF(Day(Inspection_Sheet__c.Date__c ) = 3 || Day(Inspection_Sheet__c.Date__c ) = 23 , TRUE, FALSE) }” >
<apex:outputText value=”{0,date,dd}<sup>rd</sup> {0,date,MMMM} {0,date,YYYY} ” escape=”false” >
<apex:param value=”{!Inspection_Sheet__c.Date__c}” />
</apex:outputText>
</apex:outputpanel>
<!– 4th , 5th to 20th , 24th to 30th –>
<apex:outputpanel rendered=”{!IF(Day(Inspection_Sheet__c.Date__c ) != 1 && Day(Inspection_Sheet__c.Date__c ) != 21 && Day(Inspection_Sheet__c.Date__c ) != 21 && Day(Inspection_Sheet__c.Date__c ) != 31 && Day(Inspection_Sheet__c.Date__c ) != 2 && Day(Inspection_Sheet__c.Date__c ) != 22 && Day(Inspection_Sheet__c.Date__c ) != 3 && Day(Inspection_Sheet__c.Date__c ) != 23, TRUE, FALSE) }” >
<apex:outputText value=”{0,date,dd}<sup>th</sup> {0,date,MMMM} {0,date,YYYY} ” escape=”false” >
<apex:param value=”{!Inspection_Sheet__c.Date__c}” />
</apex:outputText>
</apex:outputpanel>
</apex:page>
We are the ISV Partners and Please reach us for custom development => www.merfantz.com
—————————— We Are Happy To Helping You!!!!!!!!!!!!!!!!!! ———————————–