you can use below script to get first and last date of current month –
<?php $first_day_this_month = date(‘Y-m-01’); $last_day_this_month = date(‘Y-m-t’); echo “First Date Of current Month – “.$first_day_this_month.””; echo “First Date Of current Month – “.$last_day_this_month.””; ?>