# How to add time in minutes in datetime string PHP?

For this, you can use the strtotime() method.

The syntax is as follows −

?>
</body>
</html>

## Output

This will produce the following output

2020-10-30 10:15:20