Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Django snippets
# Select with today date
# timezone.now().today()
today = date.today()
invoice_for_today = Invoice.objects.filter(date__year=today.year, date__month=today.month, date__day=today.day)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment