将生效日期从行更改为下个月自动

Change the effectivedate from a line to auto nxt month

本文关键字:下个月 日期      更新时间:2023-09-26

我有一个在iframe中打开的Quote表单,在更改effectiveDate时遇到问题。

这是一条线:

   <input type="hidden" name="effectiveDate" value="02/02/2014"/> 

我需要将生效日期"02/02/2014"更新为下个月的第一天。我怎么能做这样的事?

$d="02/02/2014";
$firstdaynextmonth=date("Y-m-01",strtotime("$d +1 month"));