Old post, but still relevant.
I ran into the same problem. Here is what I did. The solution was to hide the hasDatepicker class and show the specific datepicker identifier I want.
In html, I end the date picker in a div with id:
<div id="pick"><input data-role="date"></div>
In js, I first hide the hasDatepicker class, and then show the one I care about.
$(document).on("pageinit", "#mypage", function() { $(".hasDatepicker").hide(); $("#pick").datepicker({}); $("#pick").show(); });
Another potential solution is to hide the second .hasDatepicker moment. I did not use this method since time is more related to the problem.
$(".hasDatepicker:eq(1)").hide();
Guy de carufel
source share