Or you can use string split method also.
check the working demo.
var yourDate = "11-12-2014";
getDate(yourDate);
function getDate(yourDate){
var date = yourDate.toString();
var divide = date.split('-');
var newDate = divide[0]+divide[1]+divide[2];
alert(newDate);
}
1
solved Change date format from dd-mm-yy to ddmmyy