function dateFormat(date){
var cardValday = "";
date = date.replace(/-/g,'').replace(/\//g,'');
if(date == '长期'){
cardValday = "9999/12/31";
}else if(date != ''){
var arr = date.split("");
arr.splice(4, 0, "/");
arr.splice(7, 0, "/");
cardValday = arr.join("");
}
return cardValday;
}