I have a model, which has a date field
date_of_birth = models.DateField(blank=True, null=True, verbose_name="DOB")
I would like to format it to save dates in the format dd/MM/yyyy
, but everything I have tried fails.
I think the default must be YYYY-MM-dd
because that is how it saves to my database. Trying to submit dates in a different format gives the error:
[u"'17/01/1970' value has an invalid date format. It must be in YYYY-MM-DD format."]
I have tried using Date Widgets but am having a few issues getting it to be compatible with my models.py