PHP – Date and Time

 

The PHP date() function is used to format a date and/or a time.

 

The PHP Date() Function

The PHP date() function formats a timestamp to a more readable date and time.

Syntax
date(format,timestamp)