the field is lastappt with DATETIME format.
How should I change this to suit the DATETIME format.
updaterow: function (rowid, rowdata, commit) {
// synchronize with the server – send update command
var data = “update=true&firstname=” + rowdata.firstname + “&lastname=” + rowdata.lastname + “&lastappt=” + rowdata.lastappt + “&dob=” + rowdata.dob;
data = data + “&address1=” + rowdata.address1 + “&city=” + rowdata.city + “&state=” + rowdata.state + “&postcode=” + rowdata.postcode;
data = data + “&customers_id=” + rowdata.customers_id;
$.ajax({
dataType: ‘json’,
url: ‘data.php’,
data: data,
success: function (data, status, xhr) {
// update command is executed.
commit(true);
}
});
}