$endtime=date("Y-m-d H:i:s",(strtotime("+30 days",strtotime($nowtime))))//加上30天
$endtime=date("Y-m-d H:i:s",(strtotime("+2 months",strtotime($nowtime))))//加上2个月,减少的话用 减号" -"
http://zhidao.baidu.com/link?url=nfFUkpd8uNGbKi7Qi_dD1cezmGY1UJMIYfH4La7oTi_6c3GHrgvWVFfmxRXbLd3c0P4sNpy9ZNsPm5cCK5nY-aupdate tianTable set endTime = date_add(month,1,curdate()) where newsTitle = 'xxx'update tianTable set endTime=DATEADD(MONTH,1,GETDATE()) where newsTitle = 'xxx'
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)