| 1659 | .. fieldlookup:: day_of_year |
| 1660 | |
| 1661 | day_of_year |
| 1662 | ~~~~~~~~~~~ |
| 1663 | |
| 1664 | For date/datetime fields, a 'day of the year' match. |
| 1665 | |
| 1666 | Takes an integer value representing the day of the year from 1 to 366 |
| 1667 | |
| 1668 | Example:: |
| 1669 | |
| 1670 | Entry.objects.filter(pub_date__day_of_year=209) |
| 1671 | |
| 1672 | (No equivalent SQL code fragment is included for this lookup because |
| 1673 | implementation of the relevant query varies among different database engines.) |
| 1674 | |
| 1675 | .. fieldlookup:: week_of_year |
| 1676 | |
| 1677 | week_of_year |
| 1678 | ~~~~~~~~~~~~ |
| 1679 | |
| 1680 | For date/datetime fields, a 'isoweek of the year' match. |
| 1681 | |
| 1682 | Returns the ISO week of the year, a decimal number between 1 and 53 . According to ISO |
| 1683 | standards, week number 1 is considered the first one which has a Thursday in the current year. |
| 1684 | |
| 1685 | Example:: |
| 1686 | |
| 1687 | Entry.objects.filter(pub_date__week_of_year=30) |
| 1688 | |
| 1689 | (No equivalent SQL code fragment is included for this lookup because |
| 1690 | implementation of the relevant query varies among different database engines.) |
| 1691 | |