PhoneGap DatePicker plugin for Android
Use the phonegap-datepicker plugin as follows:
-
configure config.xml file, add following code
<plugin name="DateUtil" value="com.flyingzl.DateUtil" />
-
use
phonegap-datepicker.js
in your html -
invoke the plugin javascript API like this
var success = function(data){ // console.log(data.year); // console.log(data.month); // console.log(data.day); } // show DatePicker Dialog DateUtil.show(success,null);
var success = function(data){ // console.log(data.hour); // console.log(data.minute); } // show TimePicker Dialog DateUtil.time(success,null);