Anonymous Anonymous - 1 year ago
445 0

Example how to add a day to a DateTime object.

PHP

PHP DateTime object + 1 day

<?php

$date = new DateTime();
$date->modify('+1 day');
$timestamp = $date->getTimestamp();