Tag adding hours in date

Add hours in DateTime in PHP

Date Time

In PHP, you can get the current Date and Time by using the function date(): date()     OR   date(‘Y-m-d H:i:s’)   Manipulating Date/Time is very easy in PHP and you can easily add something to this, like add hours, days, minutes…