date() function creates a formatted date-time string from a local date-time.
$datestring = date($format, $timestamp);
$format string is a string specifying how the date/time is to be formatted. It uses the same syntax as the
$timestamp parameter is a Unix timestamp, the date-time expressed as seconds elapsed from the Unix Epoch (Midnight GMT, January 1st, 1970). It is optional, and if omitted or
NULL it defaults to the current local date and time.
The example below prints the current date and time using the