Вот мой код для отправки даты из календаря
<form id="toDate" action="Permissions"method="post">
<div class="nativeDateTimePicker">
<label for="party">Choose a date and time for your party:</label>
<input type="datetime-local" id="party" name="toDate">
<input type="submit" value="submit">
<span class="validity"></span>
</div>
</form>
А вот что я получаю:
HTTP Status 400 – Bad Request
Type Status Report
Description The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).
Пожалуйста, помогите