Here is the html for the date field :
Check out
One of ways around: set the id field to the input, then call document.getElementById('input_name').value to get the value of the input field.