get month,date and year from given date : <p>I want to get the month and date from the given date.I get server time  . <code>date="Wed Jul 26 2017 11:39:44 GMT+0530 (India Standard Time)"</code>; I want to get  mm/dd/yyyy from the given date</p>

<pre><code>        var xmlHttp;
    function srvTime(){
    try {
        //FF, Opera, Safari, Chrome
        xmlHttp = new XMLHttpRequest();
    }
    catch (err1) {
        //IE
        try {
            xmlHttp = new ActiveXObject('Msxml2.XMLHTTP');
        }
        catch (err2) {
            try {
                xmlHttp = new ActiveXObject('Microsoft.XMLHTTP');
            }
            catch (eerr3) {
                //AJAX not supported, use CPU time.
                alert("AJAX not supported");
            }
        }
    }
    xmlHttp.open('HEAD',window.location.href.toString(),false);
    xmlHttp.setRequestHeader("Content-Type", "text/html");
    xmlHttp.send('');
    return xmlHttp.getResponseHeader("Date");
    }
    var st = srvTime();
    var date = new Date(st);  
    console.log(date); //Wed Jul 26 2017 11:39:44 GMT+0530 (India Standard Time)
</code></pre>
