I am trying to fetch date from html form into flask web application.
<input type="date" name="startdate">(html)
startdate = datetime.date(request.form['startdate'])(python-flask)
I am getting an error
File "C:\ProgramData\Anaconda3\lib\site-packages\werkzeug\datastructures.py", line 431, in getitem raise exceptions.BadRequestKeyError(key) werkzeug.exceptions.HTTPException.wrap..newcls: 400 Bad Request: KeyError: 'startdate'