Formatting Salesforce DateTime in php:

A set is an unordered collection of elements that do not contain any duplicates. You can use a combination of PHP’s strtotime and date functions.


$oldDate = ‘2012-11-06T23:00:00.000Z’;
$newDate = date(‘d/m/Y G:i’, strtotime($oldDate));
echo $newDate;

Source URL :

Written by 

Salesforce MVP | Lightning Champion | 17x Salesforce Certified | Application Architect | 7x Trailhead Ranger | Techforce Services | Australia

Leave a Reply

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