php datetime tips code example
Example 1: php code to display current date and time in different formats
echo date('Y.m.d H:i:s');
Example 2: date time format php
$today = date("F j, Y, g:i a"); // March 10, 2001, 5:16 pm
Example 3: show date php by letters
check here link: http://www.eltcalendar.com/stuff/datemysqlphp.html