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.

<?php

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

?>
Source URL : http://www.php.net/manual/en/function.date.php.

Written by 

2x Salesforce MVP | Platform Champion | 18x Salesforce Certified | MuleSoft Certified | 8x Trailhead Ranger | TechForce Services | Sydney | Australia

Leave a Reply

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

*