datepicker("getDate") returns "null" in Chrome

datepicker("getDate") returns "null" in Chrome


If I have the following HTML code:
  1. <div><input type="date" name="someDate" id="someDate"/></div>
and the following JQuery code:
  1. $("#someDate").datepicker();
  2. $("#someDate").datepicker("setDate", new Date());
  3. var output = $("#someDate").datepicker("getDate");
  4. console.log(output);
I will see "null" on the console in Chrome (IE and FF will show the actual date)

But if I change the HTML code for this:
  1. <div type="date" name="someDate" id="someDate"></div>
then it works in all. But what is the problem in the first case?

Thx