<?php
echo date("Y-m-d", strtotime("2014-12-31 -1 Month"));
