echo date and month format php code example
Example 1: php convert us date to european
$originalDate = "2010-03-21";
$newDate = date("d-m-Y", strtotime($originalDate));
Example 2: only date in php
date('Y:m:d', strtotime($date))
$originalDate = "2010-03-21";
$newDate = date("d-m-Y", strtotime($originalDate));
date('Y:m:d', strtotime($date))