toannk
10/23/2016 - 3:22 PM

Convert one date format into another in PHP

Convert one date format into another in PHP

#http://stackoverflow.com/questions/2167916/convert-one-date-format-into-another-in-php

$myDateTime = DateTime::createFromFormat('Y-m-d', $dateString);
$newDateString = $myDateTime->format('m/d/Y');