var date = eval(data.d.JoinDate.replace(/\/Date\((\d+)\)\//gi, "new Date($1)"));
var dd = date.getDate();
var mm = date.getMonth() + 1;
var yyyy = date.getFullYear();
var jdt = dd + '-' + mm + '-' + yyyy;
$('[id$=txtJoinDate]').val(jdt);
var dd = date.getDate();
var mm = date.getMonth() + 1;
var yyyy = date.getFullYear();
var jdt = dd + '-' + mm + '-' + yyyy;
$('[id$=txtJoinDate]').val(jdt);