title: validate start and end time using javascript
body: <p>I have two <code>date time pickers</code>, which I get using framework  where I can select <code>date and time</code> in the format <code>"22-04-2014 07:30PM"</code>. </p>
  
  <p>Now I need to validate the start and end time such that it allows the valid from and to time . Please guide me in doing this using javascript. </p>
  
  <p>If I select start time as 12:30 PM and end time as 6:30 PM, then it is valid but if I select start time as "10:00 AM" and end time as "8:00 AM", it is not valid .</p>