Returns a string formatted according to the given format string using the given integer timestamp or the current time if no timestamp is given. In other words, $timestamp is optional and defaults to the value of time().

declaration of date

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

test date online

share date

comments for date

On 16. Apr 2015 20:51 Rince t raju wrote:

Why Php date() showing yesterday's date even after 12:00am???

On 23. Aug 2012 16:58 krishna wrote:

date() function is having issues when timestamp is provided as an option

On 24. May 2012 19:57 Seth wrote:

These are great for quick little tests. They help me out a lot, thanks.

more comments for date

There are some more comments for date(). To see them all click here.


Leave your comment