SyntaxFix
Write A Post
Hire A Developer
Questions
time after 30 min, this easiest solution in php
date('Y-m-d H:i:s', strtotime("+30 minutes"));
for DateTime class (PHP 5 >= 5.2.0, PHP 7)
$dateobj = new DateTime(); $dateobj ->modify("+30 minutes");