How to change 24hr time to 12hr time with Javascript?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/8658097/json-scraping-convert-military-time-to-standard-time-via-javascript">JSON Scraping - Convert military time to standard time via Javascript</a>  </p>
</blockquote>



<p>My input is e.g.</p>

<p>0400</p>

<p>0915</p>

<p>1200</p>

<p>1615</p>

<p>0015</p>

<p>I need to convert them to e.g</p>

<p>04:00am</p>

<p>09:15am</p>

<p>12:00pm</p>

<p>04:15pm</p>

<p>00:15am</p>

<p>Is there any scripts available that I can make use of?</p>
