how to covert PST to IST Using javascript <p>i get PST date formate from Database and i need to convert IST formate. But my system also in IST Formate. please check this <a href="http://jsfiddle.net/sfcdD/9/" rel="nofollow">http://jsfiddle.net/sfcdD/9/</a>. </p> <pre><code> var date = "2012-12-12 05:18:28.541"; // PST date formate fetch from db var offset = (3600000*(+5.30)); // IST gmtOffset value var dateformate = 'dd/mm/yyyy "at" h:MM TT'; var dateArray = (date).split(' '); var year = dateArray[0].split('-'); var time = dateArray[1].split(':'); var d = new Date($.trim(year[0]), $.trim(year[1]-1), $.trim(year[2]), $.trim(time[0]), $.trim(time[1])); utc = d.getTime() +(d.getTimezoneOffset()*60000); //d.getTimezoneOffset() is taking local timezone nd = new Date(utc + parseInt(offset)); alert(dateFormat(nd,dateformate)); // dispaly 12/12/2012 at 5:06 AM but need to display 12/12/2012 at 7:48 PM </code></pre> <p>so my conversion is not work. it display wrong date.</p>