public static function getDateBetween($employee = null) { if ($employee = ModuleGraph::getEmployee($employee)) { return ' \'' . $employee->stats_date_from . ' 00:00:00\' AND \'' . $employee->stats_date_to . ' 23:59:59\' '; } return ' \'' . date('Y-m') . '-01 00:00:00\' AND \'' . date('Y-m-t') . ' 23:59:59\' '; }
public static function getDateBetween($employee = null) { $employee = ModuleGraph::getEmployee($employee); return ' \'' . $employee->stats_date_from . ' 00:00:00\' AND \'' . $employee->stats_date_to . ' 23:59:59\' '; }