出于某种原因,我无法让 strtotime('+1 month) 工作。这是我的代码;
$Date = $_REQUEST['date']; //This is a unix time stamp
$Start = $_REQUEST['start']; //This is a unix time stamp
$End = $_REQUEST['end']; //This is a unix time stamp
在我的约会上加一个月;
$monStart =strtotime('+1 month', $Start);
$monEnd =strtotime('+1 month', $End);
$monDate =strtotime('+1 month', $Date);
然后显示我更改的日期;
$vEnd = date('m/d/Y', $monEnd);
$vStart = date('m/d/Y', $monStart);
$vDate = date('m/d/Y', $monDate);
我遇到的问题是提供的日期;
$Date = 1/31/2013
$Start = 1/01/2013
$End = 1/31/2013
返回;
$vDate = 3/03/2013
$vStart = 2/01/2013 //Only correct one
$vEnd = 3/03/2013
请问有人可以帮我吗?