if you are just going by the current time, you can use
date("Y-m-d H:i:s", strtotime("-1 month"));
if you want to use a past date you can still do the same thing, it will just take an extra variable or two to go back and forth from timestamps to dates.