なんか面倒な事してるな
俺はこっち使ってる

strtotime("- 10 day",time())