how to access in format date in php code example
Example 1: php convert us date to european
$originalDate = "2010-03-21";
$newDate = date("d-m-Y", strtotime($originalDate));
Example 2: date time format php
$today = date("F j, Y, g:i a"); // March 10, 2001, 5:16 pm