<?php echo date('Y-m-d H:i:s', strtotime(date("Y-m-01").'-14 month'));
Standard input is empty
2017-10-01 00:00:00
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!