how to create the date picker programmatically
<p>I need to create time picker using <code>DatePickerDialog</code> programmatically . But i dont have any idea to how to do it because im a beginner.</p>

<pre><code>        ArrayList&lt;String&gt; DestspinnerArray = new ArrayList&lt;String&gt;();
        Spinner spinner = new Spinner(this);
        ArrayAdapter&lt;String&gt; DestspinnerArrayAdapter = new ArrayAdapter&lt;String&gt;(this,
        android.R.layout.simple_spinner_item,DestspinnerArray);
        DestspinnerArrayAdapter.add("one");
        DestspinnerArrayAdapter.add("two");    
        spinner .setAdapter(DestspinnerArrayAdapter); 
</code></pre>

<p>the above example is to display a spinner.Like wise i need full guidance to display date picker.</p>
