How to get the current date and time in PHP
As you will notice in this article, it's very easy to work with the dates in the PHP. You may obtain both the server and request times in a single line of code and customize the date strings according to your needs by using the formatting options. To get the current local date or time, …