These functions allow you to get the date and time from the server
where your PHP scripts are running. You can use these functions to format the
date and time in many different ways.
Note:
Please keep in mind that these functions are dependent on
the locale settings of your server. Make sure to take
daylight saving time (use e.g.
$date = strtotime('+7 days', $date) and not
$date += 7*24*60*60)
and leap years into consideration when working
with these functions.
ref.datetime php code on this is provided for your study purpose, it will guide you to know how create and design a website using php. use it to practice and train your self online
Php ref.datetime syntax tutorial
php tutorial guide and code design are for easy learning and programming. The code practice section provided at the top is for practising of this syntax. Use the code section up to practice your php programming online. Learning php is very easy, all you need is to use the examples on this site and practice them to perfect your skills.