I'm trying to get the last day from the month using strtotime
.I don't know what wrong with the below code. Can some one shoot out the issue ?
$string = 'Jun';
$month_number = date("m",strtotime($string));
$calcstart_date = date('Y-'.$month_number.'-01').' 00:00:00';
echo $calcend_date = date('Y-'.$month_number.'-t').' 11:59:00';