There's no method datepicker()
in jQuery (you may be getting confused with its sister library jQuery UI) so you'll need to include an external library to implement such functionality.
I can recommend this one, I use it myself in production environments and have never had any issues with it. It's as easy to use as you'd expect:
$("input").datetimepicker();
new Date($("input").val());