I
I
IvanOne2015-07-16 08:34:05
Django
IvanOne, 2015-07-16 08:34:05

How to solve the problem of finding a birthday?

Good morning! There is a task to find all birthdays in a particular week, and it’s actually not clear how to build a query, I assume that through between, but it’s not clear how to deal with years. In general, if someone met with such a problem, tell me the logic of the solution. Django project.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
X
xmoonlight, 2015-07-16
@xmoonlight

timestamp?

I
IvanOne, 2015-07-16
@IvanOne

actually figured out
filter(date_from__day__gte=day,
date_from__month__gte=month,
date_to__day__lte=day,
date_to__month__lte=month)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question