I am using Shield UI Date picker for capturing DOB, I am facing problem in formatting the selected date. The JavaScript code I had used is shown below
$("#dobPicker").shieldDatePicker({
    openOnFocus: true,
    format: "{0:dd/MM/yyyy}",
    textTemplate: "{0:dd/MM/yyyy}",
    parseFormats: ["dd/MM/yyyy"],
    max: new Date(),
    events: {
        change: function(e) {
            var dobVal = $("#dobPicker").swidget().value();
            alert(dobVal);
        }
    }
});
And the output I got is in the below format
Thu Aug 20 2015 00:00:00 GMT+0530 (India Standard Time)
But I require an out put in dd/MM/yyyy format
Could you help me to solve this?
Thanks in advance :)
 
     
    