I have an HTML form which returns me two dates in a format like this: 2019-10-15. When I checked the type() of the date return it came out to be "str"
how can I use this string in my Django query?
Code:
start = request.POST['from']
end = request.POST['to']
foo = bar.objects.filter(dispatch_date = ??)