You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation is not very clear about what format these should be in so, for those looking for the answer....
for start and end dates for current day the option might look like this:
You need to import datetime into your forms.py for the examples above to work. The javascript in the datetimewidget is expecting a string. The Javascript Date object is pretty happy with a variety of strings. See docs for ones you might ask Django to create or just add your own.
Ciao
The text was updated successfully, but these errors were encountered:
The documentation is not very clear about what format these should be in so, for those looking for the answer....
for start and end dates for current day the option might look like this:
or
You need to import datetime into your forms.py for the examples above to work. The javascript in the datetimewidget is expecting a string. The Javascript Date object is pretty happy with a variety of strings. See docs for ones you might ask Django to create or just add your own.
Ciao
The text was updated successfully, but these errors were encountered: