Home PHP Formatting Salesforce DateTime in php

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.

You may also like

Leave a Comment