php datetime to date and time format\ 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