How to use php's date() function?

The date() function in PHP returns the current date and time.

Example:


  echo date('Y-m-d');
  

Beginner's Guide to PHP