[Django]-Django forms DateTimeInput widgets instace value

4👍

solved,
for it to work, appropriate format need to set: 2021-07-01T01:00 or 2021-01-01T01:00:00.

 'time_end':  forms.DateTimeInput(format=('%Y-%m-%dT%H:%M'), attrs={'type': 'datetime-local'})
👤Kriss

Leave a comment