How to convert javascript date to a particular timezone
<p>I am getting date info as number in milliseconds. I am able to parse it properly. But when I change my pc timezone the parsed time is also changed. I want only to a particular timezone only.</p>

<p>EX.</p>

<pre><code>Time in millisec: 1461645900000
Actual Parsed: 26-Apr-2016 10:15:00 IST
</code></pre>

<p>when pc timezone is changed it become: <code>Tue Apr 26 2016 14:15:00 GMT+0930 (Local Standard Time)</code></p>

<p>Here I want only the actual time. How to get it?</p>

<p>Here is My little try:</p>

<pre><code>function parseDateTime(dt, format) {
    var months = [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug",
            "Sep", "Oct", "Nov", "Dec" ];
    var ret = "";
    if (dt) {
    var day="",month="",year="",hour="",mins="",secs="";
        var d = new Date(dt)
        var os=d.getTimezoneOffset();
        if(os&lt;0){

        }
        ret += d.getDate() + "-" + months[parseInt(d.getMonth())] + "-"
                + d.getFullYear() + " " + leftPad(d.getHours(), 2, "0") + ":"
                + leftPad(d.getMinutes(), 2, "0") + ":"
                + leftPad(d.getSeconds(), 2, "0");
    }
    document.getElementById("d1").innerHTML=ret;
    console.log(ret);
}
function leftPad(number, targetLength, withWhat) {
    var output = number + '';
    while (output.length &lt; targetLength) {
        output = withWhat + output;
    }
    return output;
}
parseDateTime(1461645900000);
</code></pre>

<p>I have used
new Date().toLocaleString("en-US", {timeZone: ""}) but limited. Also I am not interested in new lib.</p>