How to convert "hh:mm AM/PM" string to formatted time? : <p>I have string inputs as "03:00 PM" or "09:00 AM", which i want to convert it to formatted time or even to integer. So that I can compare them by the order of time. 
Anyone can help me with that?</p>

<p>Thank you in advance.</p>
