PHPの場合、「date」関数と「strtotime」関数を利用すると簡単にできます。
現在日付から1日前:date("Y/m/d", strtotime("-1 day" ));
現在日付から1ヶ月前:date("Y/m/d", strtotime("-1 month" ));
`現在日付から1ヶ月前:date("Y/m/d", strtotime("-1 year" ));
$input_date = '2014/1/15';
指定日付から1日後:date("Y/m/d", strtotime($input_date." 1 day" ));
指定日付から1ヶ月後:date("Y/m/d", strtotime($input_date." 1 month" ));
指定日付から1ヶ月後:date("Y/m/d", strtotime($input_date." 1 year" ));
蛇足ですが、1週間という指定をする時は、
` strtotimeの引数にstrtotime("1 week")
とやれば1週間単位での日付の加算、減算ができます。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。