how to create the date picker programmatically
===

I need to create time picker using DatePickerDialog programmatically . But i dont have any idea to how to do it because im a beginner.`ArrayList<String> DestspinnerArray = new ArrayList<String>();
		Spinner spinner = new Spinner(this);
	    ArrayAdapter<String> DestspinnerArrayAdapter = new ArrayAdapter<String>(this,
	    android.R.layout.simple_spinner_item,DestspinnerArray);
	    DestspinnerArrayAdapter.add("one");
	    DestspinnerArrayAdapter.add("two");	   
	    spinner .setAdapter(DestspinnerArrayAdapter);` 
the above example is to display a spinner.Like wise i need full guidance to display date picker.
