Quick Tip – Change Date format in Apex

If you use any date fields in Apex, it prints in this format System.debug('Date: '+contact.Date); Output:  2016-04-26 00:00:00 To change the format you can simply use: format() System.debug('Date: '+contact.Date.format()); Output:  26/04/2016  

Awesome Global Picklists

Update: This article was written when Global Picklists was launched.  Salesforce has now renamed Global Picklists to Picklist Value Sets.   Do you want to use same pick list values in different objects across the system?  Global Picklists is your answer! Global Picklists lets you efficiently reuse a single list of values for multiple custom picklist …

%d bloggers like this: