Table of Contents

date()

Full information can be found in the PHP Manual

syntax

string date ( string $format [, int $timestamp = time() ] )

$format

This parameter determines what is returned by the functon. For example…

$timestamp

The optional $timestamp parameter is an integer Unix timestamp that defaults to the current local time if a timestamp is not given. In other words, it defaults to the value of time().