title: How to get selected am_pm value from TimePicker in Android
body: <p>I was using a Time picker from which user can set or change time and save to database. I was able to pick Hour(s) and Minutes(s) from Time Picker using,</p>
  
  <pre><code>TimePicker getTimepickerTime = (TimePicker) findViewById(R.id.timePicker1);
  int Hour= getTimepickerTime.getCurrentHour();
  int Minute=getTimepickerTime.getCurrentMinute();
  </code></pre>
  
  <p>but how to pick the am_pm value from Time Picker? </p>
  
  <p>Please suggest me. I was stuck here.</p>
  
  <p>Any Help will be Appreciated!!</p>