日期过滤器不起作用,在日期之间过滤,从用户获取起始日期和截止日期

时间:2019-09-05 11:52:01

标签: django-models django-templates django-views

日期之间的过滤不起作用,无法从用户那里获取日期和日期

views.py

$already_exists = DB::table('attendanceTable')->where('user_id', $request->loggedUserId)
                    ->where('shift_id', $Shifts->id)
                    ->where('day', today())
                    ->exists();
if ($datetime->format('H:i') >= '05:50' && $datetime->format('H:i') <= '17:10' && !$already_exists) {

0 个答案:

没有答案