Skip to Content

TheBlogReaders.com

Salesforce.com, PHP, MySQL, Javascript, Ajax, Htacces

Formatting Salesforce DateTime in php

Be First!
by January 25, 2013 PHP, SALESFORCE

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.

(1773)

Previous
Next

Leave a Reply