PHP date () function formats
Definition and Usage
PHP date() function formats a local date and time, and returns the formatted date string.
PHP Date / Time Functions - how to create? - example
Syntax of PHP date:
date(format,timestamp);
date_default_timezone_set('UTC');
echo date("l");
echo date('l jS \of F Y h:i:s A');
echo "July 1, 2000 is on a " . date("l", mktime(0, 0, 0, 7, 1, 2000));
// Show something like this: Wed, 25 Sep 2013 15:28:57 -0700
echo date(DATE_RFC2822);
echo date(DATE_ATOM, mktime(0, 0, 0, 7, 1, 2000));
?>
Formatting Data () - How to create
Some examples of data formatting (). You need to escape the extra characters, because those with special meaning will produce unwanted results, and the other characters can be of special significance in future versions of PHP. Be sure to use single quotes to prevent characters from \ n becoming a newline.
// and we are in the time zone Mountain Standard Time (MST)
$today = date("F j, Y, g:i a");
The PHP cod above will display this result -
PHP Date, Time Functions, How to create php date
PHP Date / Time Functions - how to create? - example - php tutorial
This tool makes it easy to create, adjust, and experiment with custom colors for the web.

Magnews2 is a modern and creative free magazine and news website template that will help you kick off your online project in style.

Find here examples of creative and unique website layouts.

Find here examples of creative and unique website CSS HTML menu.