Hi,

I have a form with a start_date field of type DateField (widget is
DateInput).

When I specify a format argument, the input does not render as specified.
The format is always YYYY-MM-DD. My code is as follows:

```
start_date = forms.DateField(
label='Start date',
widget=forms.widgets.DateInput(
format='%d %B, %Y',
attrs = {
'type': 'date',
}
)
)
```
What am I missing?

Kind regards,
Lloyd

*Sent with Shift
<https://tryshift.com/?utm_source=SentWithShift&utm_campaign=Sent%20with%20Shift%20Signature&utm_medium=Email%20Signature&utm_content=General%20Email%20Group>*

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH-SnCDCu6Poa2bqBsBwV2LVbGcDJpSH6W_BNFjtuQfRdB7RyQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to