How do you display a JavaScript datetime object in the 12 hour format (AM/PM)?
You can also consider using something like date.js: