Hi dear friends,
do you have some requirements based on the superscript or subscript in the date format . Don'y worry about This Process . It's too simple process to execute , follow this code .
<!--ST 01 && 21 && 31 -->
<apex:outputpanel rendered="{!IF(Day(Inspection_Sheet__c.Date__c ) = 1 || Day(Inspection_Sheet__c.Date__c ) = 21 || 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>
<!-- 02 && 22 -->
<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>
<!-- 3 && 23 -->
<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>
<!-- 4 && 5- 20 && 24 -30 -->
<apex:outputpanel rendered="{!IF(Day(Inspection_Sheet__c.Date__c ) != 1 && 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>
Really Thanks to view and share this page ..
sourajking@gmail.com
+91-7418425418
do you have some requirements based on the superscript or subscript in the date format . Don'y worry about This Process . It's too simple process to execute , follow this code .
<!--ST 01 && 21 && 31 -->
<apex:outputpanel rendered="{!IF(Day(Inspection_Sheet__c.Date__c ) = 1 || Day(Inspection_Sheet__c.Date__c ) = 21 || 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>
<!-- 02 && 22 -->
<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>
<!-- 3 && 23 -->
<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>
<!-- 4 && 5- 20 && 24 -30 -->
<apex:outputpanel rendered="{!IF(Day(Inspection_Sheet__c.Date__c ) != 1 && 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>
Really Thanks to view and share this page ..
sourajking@gmail.com
+91-7418425418