Skip to content

Latest commit

 

History

History
45 lines (27 loc) · 727 Bytes

README.md

File metadata and controls

45 lines (27 loc) · 727 Bytes

phonegap-datepicker

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);