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
RockersRockers 

How todisplay date in required format?

Hi Friends,

 

                In my page, i want to display the order ref. no with the format as "yymmdd<6digitrandomnumber>".

 

            Based on the current date, how to display the date in the format of "yymmdd".

 

          Pls help in this to get the date in the required format.

 

Regards,

Phanikumar

kiranmutturukiranmutturu

use some thing like this..

<apex:outputText value="{0,date,yyyy/MM/dd}" >
<apex:param value="{!o.GE_ORG_Expected_Order_Date__c}"/>
</apex:outputText>