Actually my problem is that i have to retrieve data in 'dd-MM-yy' format but whenever i try to change 'dateFormat' attribute to 'dd-MM-yy'format,I haven't process further. so please help me to find the solution of this issue..
 $("input[name='plannedPrgomStartDate']").datepicker({
                                showOn: "button",
                                buttonImage: "../../IMAGES/EQM/calender_icon.png",
                                buttonImageOnly: true,
                                changeYear: true,
                                changeMonth: true,
                                yearRange: yrRange,
                                dateFormat: 'MM-dd-yy',
                            });
$("input[name='plannedPrgomEndDate']").datepicker({
                                showOn: "button",
                                buttonImage: "../../IMAGES/EQM/calender_icon.png",
                                buttonImageOnly: true,
                                changeYear: true,
                                changeMonth: true,
                                yearRange: yrRange,
                                dateFormat: 'MM-dd-yy',
                            });
Here is my code for getting the date value
var plannedPrgomStartDate = $('#plannedPrgomStartDate').datepicker().val();
                        var plannedPrgomEndDate = $('#plannedPrgomEndDate').datepicker().val();                        
                        if (Date.parse(plannedPrgomStartDate) >= Date.parse(plannedPrgomEndDate)) {
                            displayErrorFeedback("Start date can not be greater than or equal to end date.");
                                loaderHideShow();
                                 return false;
                        }
 
    