Let's take a closer look at the first two lines.
var etaDate = new Date();
etaDate = document.getElementById("etaDate").value;
On the first line, you set etaDate to be a new Date instance. On the second line you throw away that Date and instead get a value from some input. Does that seem weird?
Also, the .value from a form field is always a string. Always.