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

shares about what he knows and does in Salesforce
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