DEFAULT_DATE_INPUT_FORMATS is on the deprecation timeline, just FYI.
The formatting options are for the way data can be input into a form object.
Django always stores dates the same way (per database backend).
Are you using Django with an already-existing database full of data?
Also, your code
My DataBase has the dates like "2003-08-31" and the django take them
like this: "May 9, 2024".How can i change that in Django? At first i
was trying something like this date=models.DateField(default="%Y-%m-
%d)
Next is try this:
from django import forms
from django.forms.fields import
2 matches
Mail list logo