/** * Return the last day of the month into which the passed date falls. * * @param string $date Any valid date string * @param string $timeZone * @return string */ public static function lastDayOfMonth($date, $timeZone = null) { return substr(uDateTime::lastDayOfMonth($date, $timeZone), 0, 10); }