You need to sign in to do that
Don't have an account?
Date Format In Visualforce page
Hi Friends,
I need some accurate solution in date format, i think it's easy to salesforce developer . but i am new to salesforce .
I dispalyed the date format like below
<apex:outputtext value="{0, date, medium}">
<apex:param value="{!Inspection_Sheet__c.Date__c}"></apex:param>
</apex:outputtext>
Output Is : Oct 21,2016
But I need a output like this --> 21st Oct 2016
Can Anyone help to me ASAP.
I will be appreciate if you are come with the best solution .
Many Thanks In advance !!
Regards ,
SOUNDAR ,
+91-7418425418.
I need some accurate solution in date format, i think it's easy to salesforce developer . but i am new to salesforce .
I dispalyed the date format like below
<apex:outputtext value="{0, date, medium}">
<apex:param value="{!Inspection_Sheet__c.Date__c}"></apex:param>
</apex:outputtext>
Output Is : Oct 21,2016
But I need a output like this --> 21st Oct 2016
Can Anyone help to me ASAP.
I will be appreciate if you are come with the best solution .
Many Thanks In advance !!
Regards ,
SOUNDAR ,
+91-7418425418.
you are correct !! but in small amendments
<apex:outputText value="{0,date,dd' 'MMMMM' 'yyyy}">
<apex:param value="{!Inspection_Sheet__c.Date__c}" />
</apex:outputText>
Thanks For Your Response....
All Answers
Really thanks to your awesome helping .
I tried Your Code , it's displaying like below.
21/10/2016 But I am expecting like 21st October 2016
Can you give an accurate solution please .
Many Thanks ..
Execute in developer counsole and check deburg below code .
This formate will get name of the month format('dd/MMMMM/yyyy');
any issue ask me .
Regards ,
Harish.R.
you are correct !! but in small amendments
<apex:outputText value="{0,date,dd' 'MMMMM' 'yyyy}">
<apex:param value="{!Inspection_Sheet__c.Date__c}" />
</apex:outputText>
Thanks For Your Response....
Your coding is perfectly working fine , but i don't want to create class for this one .
thanks for your quick response.
Above you given a perpect syntex for visualforce date formate
It working fine for me
Many thanks!
<apex:outputText value="{0, date, dd/MM/yyyy}">
<apex:Param value="{!relatedTo.AE_Patient_DOB__c }" />
</apex:OutputText>
try below code, it will disply like 28th February 2021
<apex:outputText rendered="{!if((DAY(TODAY()) == 1) || (DAY(TODAY()) == 21) || (DAY(TODAY()) == 31) , true,false) }"> {!DAY(TODAY())}<sup>st</sup></apex:outputText>
<apex:outputText rendered="{!if((DAY(TODAY()) == 2) || (DAY(TODAY()) == 22) , true,false) }"> {!DAY(TODAY())}<sup>nd</sup></apex:outputText>
<apex:outputText rendered="{!if((DAY(TODAY()) == 3) || (DAY(TODAY()) == 23) , true,false) }"> {!DAY(TODAY())}<sup>rd</sup></apex:outputText>
<apex:outputText rendered="{!if((DAY(TODAY()) > 3 && DAY(TODAY()) <21) || (DAY(TODAY()) > 23 && DAY(TODAY()) <31), true,false) }"> {!DAY(TODAY())}<sup>th</sup></apex:outputText>
<apex:outputText value="{0,date,MMMMM}"> <apex:param value="{!TODAY()}" /></apex:outputText> {!YEAR(TODAY())}:</strong>
(https://careerhub.org.in/pradhan-mantri-awas-yojana-pmay/)
Click Here For view details of All Railway Jobs ,Posts,Salary
(https://fact-india.org/index.php/2021/10/30/railway-jobs-salary-and-posts/)
Check Latest GMP You Can Visit IPO GMP Grey Market Premium (https://ipobazar.in/grey-market-premium/)
Check IPO Subscription Live (https://ipobazar.in/ipo-subscription/) Details Go Now
Check IPO Allotment Status (https://ipobazar.in/ipo-allotment-status/) On IPO Bazar Now,
Check Latest SME IPO (https://tradingbuzzr.com/sme-ipos/) Details
Check Delivery IPO (https://tradingbuzzr.com/delhivery-ipo/) complete details at TradingBuzzr!
ipowala (https://ipowala.in)
Upcoming ipos (https://ipowala.in/upcoming-ipo/), Latest IPO GMP (https://ipowala.in/ipo-grey-market-premium-gmp/), IPO Grey market premium,SME IPO (https://ipowala.in/upcoming-sme-ipo/), IPO Subscription Status (https://ipowala.in/ipo-subscription-status/), IPO Allotment Status (https://ipowala.in/ipo-allotment-status/), Buyback of Shares (https://ipowala.in/buyback/), IPO forms (https://ipowala.in/download-ipo-application-asba-form/)
https://techlayer.in/fact-rygar-enterprises/
https://techlayer.in/hpcl-business-portal-login/
https://techlayer.in/airteltez-login-portal/
https://techlayer.in/bihar-ration-card-status/
https://techlayer.in/all-web-series-download/
https://techlayer.in/jaa-lifestyle-login/