Date format(‘mm/dd/yyyy’) in Apex
Datetime dtStartDate = (Datetime) offerRecord.Campaign_Start_Date__c; wrapper.OfferCampaignStartDate = dtStartDate.format('MM/dd/yyyy');
Force.com site vs. Site.com Uploading attachment
Salesforce, Apex
Datetime dtStartDate = (Datetime) offerRecord.Campaign_Start_Date__c; wrapper.OfferCampaignStartDate = dtStartDate.format('MM/dd/yyyy');
Force.com site vs. Site.com Uploading attachment