method lastDayOfMonth documentation in bbn\Date

function($date, $format = false) { $m = false; if ( Str::isNumber($date) ){ if ( $date <= 12 ){ $m = $date; $y = date('Y'); } else{ $m = (int)date('m', $date); $y = date('Y', $date); } } else if ( $d = strtotime($date) ){ $m = (int)date('m', $d); $y = date('Y', $d); } if ( $m ){ $r = mktime(0, 0, -1, $m+1, 1, $y); return $format ? date($format, $r) : $r; } } }

BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.