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
AkiraDioAkiraDio 

Сonversion date

Good day!

This problem:
There is a code in the controller:
               Map <id,Action_Goal__c> aMap = new Map <id,Action_Goal__c> (
                                  [select Goal_Description__c, id, Goal_Type__c, Targeted_Due_Date__c, Name, Status__c, CreatedDate
                                     From Action_Goal__c
                                     Where ToLabel (Goal_Type__c) =: MyGoalType
                                        AND ((CALENDAR_Year (Targeted_Due_Date__c) =: MyYear AND CALENDAR_Month (Targeted_Due_Date__c) =: MyMonth)
                                             OR (Status__c! =: BusinessPlanUtil.Completed))
                                        AND CreatedById =: MyUserID
                                   ]);

Output the variable in VisualForce:
<apex:column style="text-align:" headervalue="Goal set in" value="{!GT.CreatedDate}" />
The result:
Wed Sep 05 10:06:20 GMT 2012

required:
1. List only month
2. Convert to user's local time

Forgive you for help!

Best Answer chosen by Admin (Salesforce Developers) 
CheyneCheyne

Try the following:

 

<apex:outputText value="{0,date,MMMM}">
    <apex:param value="{!GT.CreatedDate}" /> 
</apex:outputText>

This should ouput the full month name, in the current user's local time. If you want the abbreviated month name, just put three M's instead of four in the outputText value parameter.