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 08. Sep 2016 08:18 sree wrote:

It is very useful

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

more comments for date

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


Leave your comment