I am trying to split the current date into parts and this is what I am doing
        var today = new Date();
        var currDay = today.getDay();
        var currMonth = today.getMonth();
        var currYear = today.getYear();
        alert(currDay + "/" + currMonth + "/" + currYear)
but with this I get the following result
        0/7/115 (output)
where it should be
        09/07/2015
What can I do to get the required result?
 
     
     
     
     
     
    