<input type="text" value="2008-10-17" />
<input type="text" min="2011-01-01" max="2011-12-31" />
<input type="text" />Set the locale like this
$( selector ).mobipick({ locale: "es" //default is "en", english });
<input type="text" />Set the accuracy to month like this
$( selector ).mobipick({ accuracy: "month" //default is "day" });
<input type="text" />Set the accuracy to year like this
$( selector ).mobipick({ accuracy: "year" //default is "day" });
$( selector ).mobipick({ accuracy: "year" //default is "day" });
<input type="text" value="2012" min="2010" max="2014" />
$( selector ).mobipick({ minDate: (new XDate()).addDays( 4 ) });
<input type="text" />
var mpFrom = $( ".min-date" ).mobipick(); var mpTo = $( ".max-date" ).mobipick(); mpFrom.on( "change", function() { mpTo.mobipick( "option", "minDate", mpFrom.mobipick( "option", "date" ) ); }); mpTo.on( "change", function() { mpFrom.mobipick( "option", "maxDate", mpTo.mobipick( "option", "date" ) ); });
<input class="min-date" type="text" /> <input class="max-date" type="text" />
$( selector ).mobipick({ intlStdDate: false });
<input type="text" />
var picker = $( selector ).mobipick(); $( linkSelector ).on( "tap", function() { picker.mobipick("option", "date", null).mobipick("updateDateInput"); });
<input type="text" /> <a href="#" data-role="button" data-icon="delete" data-iconpos="notext"></a>
var picker = $( selector ).mobipick({ dateFormat: "MM-dd-yyyy" });
<input type="text" />