PHP Date() Function

The PHP date() function formats the date and time as per given input parameter. You can convert any time format to required format using strtotime() function. strtotime() function rerurns UNIX Timestamp, which is easy to covert to various different date formats. 

Script for Various Date Formats

 PHP Date function ScreenShot

For better understanding of usage date function and to get required date format refer the following image. which is captured from php.net website.

php date function