Another Salesforce blog!!!

Salesforce, Apex

Date format(‘mm/dd/yyyy’) in Apex


Datetime dtStartDate = (Datetime) offerRecord.Campaign_Start_Date__c; 
wrapper.OfferCampaignStartDate = dtStartDate.format('MM/dd/yyyy');

Leave a Reply

Your email address will not be published. Required fields are marked *

*