SyntaxFix
Write A Post
Hire A Developer
Questions
$date = DateTime::createFromFormat('m-d-Y', '04-15-2013'); $date->modify('+1 day'); echo $date->format('m-d-Y');
See it in action
Or in PHP 5.4+
echo (DateTime::createFromFormat('m-d-Y', '04-15-2013'))->modify('+1 day')->format('m-d-Y');
reference
DateTime::createFromFormat()