PHP Date and Time
In this tutorial, we are going to learn about PHP Date and Time. Date and time are part of our everyday lives. PHP also provides this tools to make it work the dates and time easier. These functions allow you to get the date and time from your server where the PHP scripts are running. Then, you can use these functions to format the date and time in some ways.
Note: These function it depends on your settings of your server.
Installation: No need installation for these functions.
The PHP Date() Function
The PHP date() function formats a timestamp, so they are more likely human readable.Syntax
date(format,timestamp)
format - This is required field and the timestamp must be in specific format.
timestamp - This is optional field and it also specific timestamp and the current date and time is default.