<?php $d1 = DateTime::createFromFormat('d-m-Y', '09-08-2016');$d1->add(new DateInterval('P4M'));echo $d1->format('d-m-Y');
Standard input is empty
09-12-2016
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!