How to format date from datetime php code example
Example: date time format php
$today = date("F j, Y, g:i a"); // March 10, 2001, 5:16 pm
$today = date("F j, Y, g:i a"); // March 10, 2001, 5:16 pm