<?php $date = new DateTime();$date->sub(new DateInterval('P46D'));echo $date->format('Y-m-d') . "\n";
Standard input is empty
2016-02-02
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!