I have a variable
I want to get the
total number of devc in the past 6 days.
I have these code in views.py
todays_date = datetime.now() past_six_days = todays_date - 6 ## I'm afraid if i do like this, I will get negative number when todays_date is 1/11/2018
How can I get the total number of device where 'reg_date' is inside the 'past_six_days' range ?
Kamil answered question
Have an answer?