Good afternoon,
The return of Json brings the badly formatted date="/ Date (1420077600000) /", how to deal?
{"TB1":1,"DTADMISSAO":"\/Date(1420077600000)\/"}
ThisisthesectionwhereIsettheDatefield:
$.ajax({url:"ObterFuncionario",
type: "post",
datatype: "json",
contentType: "application/json charset=utf-8",
data: JSON.stringify({ "id": id }),
processData: false,
beforeSend: function () {
$("#divCarregando").show();
},
complete: function () {
$("#divCarregando").hide();
},
success: function (data) {
$("#DTADMISSAO").val(data.DTADMISSAO);
},
error: function (result) {
alert(result.responseText);
}
});
HTML:
<div class="form-group small">
<div class="col-sm-2">
ADMISSÃO:
</div>
<div class="col-sm-10">
<input type="text" id="DTADMISSAO" class="form-control input-sm" />
</div>
</div>