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