Format date time JavaScript
How to format date and time like this in JavaScript ? March 05, 2012 @ 14:30 (UTC - 9:30) I use this code to calculate EST time : function getDate() { var now = new Date(); var utc = now.getTime() + (now.getTimezoneOffset() * 60000); return new Date(utc + (3600000 * -4)); } I use the date-time-format that Tats recommended because doing it manually is a huge PIA. var yourDate = dateFormat(getDate(), "mmmm dd, yyyy @ HH:MM) + "(UTC -9:30)"; Keep in mind this isn't Daylight Savings aware.. and you are asking for UTC -9:30 in your format, but your function converts to -4. Also, I believe that now