I currently have a form with just the date field in Pug:
form#myForm(action='/myForm', method='POST' name='myForm')
div.form-group
label(for='archiveDate' name='archiveDate') Date:
input(type='date', name='archiveDate')
button.btn.btn-primary(type="submit", name="myBtn") Submit
How do I pass the date value to my Node JS function when the user submits the date?