SyntaxFix
Write A Post
Hire A Developer
Questions
you can use "__range" for example :
from datetime import datetime start_date=datetime(2009, 12, 30) end_end=datetime(2020,12,30) Sample.objects.filter(date__range=[start_date,end_date])