<?php $a = "2015-10-31"; echo date("Y-m-01", strtotime($a)); echo date("Y-m-d", strtotime($a."+1 month"));
You have javascript disabled. You will not be able to edit any code.