title: Create date object from Date picker and Time Picker
body: <p>I'm trying to create  a date object in Android from Date picker and Time picker. I know how to do seperatly but when I want to create single Date object using both Date picker and Time picker</p>
  
  <p>I tried this </p>
  
  <pre><code>DatePicker dp = (DatePicker)findViewById(R.id.datePickerDelayed);
  TimePicker tp = (TimePicker)findViewById(R.id.timePickerDel);
  Date myDbDate = new Date(dp.getYear(), dp.getMonth(), dp.getDayOfMonth(), tp.getCurrentHour(), tp.getCurrentMinute());
  </code></pre>
  
  <p>but no luck as it is deprecated. Any one can please point me to a resource?</p>