1
我有以下腳本做一些日期操作:可變天添加到特定日期
function indate($leavedate){
if($leavedate){
$enddate=$leavedate[0]['LoppumisPvm'];//This prints 23 Apr
$endday=date('d',strtotime($enddate));//this prints 23
$endmonth=date('M',strtotime($enddate));// This prints Apr
$additional_days=$endday-15;// This prints 8
$end = strtotime(date("d M", strtotime("15 Jan")) . " +$additional_days days");
echo $end;
我試圖讓該變量$end
這將額外的天數添加到特定日期(有鑑於1月15日)..它打印1358179200,而不是..