时间:2021-07-01 10:21:17 帮助过:4人阅读
$time='2014-11-12';
echo date('Y-m-d',strtotime("$time-3 days"));
?>
$conn=mysqli_connect('localhost','root','root');
$res=mysqli_query($conn,"SELECT ADDDATE('2014-11-12',INTERVAL -3 DAY)");
$row=mysqli_fetch_array($res);
echo $row[0];
2014-11-09