title: Javascript: convert 24-hour time-of-day string to 12-hour time with AM/PM and no timezone
body: <p>The server is sending a string in this format: <code>18:00:00</code>. This is a time-of-day value independent of any date. How to convert it to <code>6:00PM</code> in Javascript? I could prepend today's date as a string to the value sent by the server and then parse the combined values and then try the <code>.toTimeString()</code> method of the Date object, but the format that time method emits is 24-hour time with a seconds chunk. I could write a function, but is there something built in?</p>