title: Android Calendar Set Am or Pm time not 24 Hour
body: <p>I have a script at the moment that is always being passed the time in an AM PM format. But I do not know how to set the calendar with this time as it only accepts 24 hour format the way I have the code written. How would I convert the time to 24 hour or input a 12 hour format?</p>
  
  <pre><code>         calendar.set(Calendar.HOUR_OF_DAY, HourValue);
           calendar.set(Calendar.MINUTE, MinuteValue);
           calendar.set(Calendar.SECOND, 0);
           calendar.add(Calendar.MINUTE, -356);
  </code></pre>