A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://django-filter.readthedocs.io/en/main/ref/fields.html below:

Field Reference - django-filter 25.1 documentation

Back to top

Toggle table of contents sidebar

Field Reference
class IsoDateTimeField

Extends django.forms.DateTimeField to allow parsing ISO 8601 formated dates, in addition to existing formats

Defines a class level attribute ISO_8601 as constant for the format.

Sets input_formats = [ISO_8601] — this means that by default IsoDateTimeField will only parse ISO 8601 formated dates.

You may set input_formats to your list of required formats as per the DateTimeField docs, using the ISO_8601 class level attribute to specify the ISO 8601 format.

f = IsoDateTimeField()
f.input_formats = [IsoDateTimeField.ISO_8601] + DateTimeField.input_formats

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4