Here is what I have come up with so far to format the date in a MySQL needed format. It works accept for the last day of the month. There must be a better way to do this.
{ text: ‘FollowUp’, dataField: ‘FollowUp’, width: 160, editable: true, filterable: false, columntype: ‘datetimeinput’, cellsformat: ‘MM-dd-yyyy’,
cellvaluechanging: function (row, column, columntype, oldvalue, newvalue) {
if (newvalue == “”) {
return oldvalue;
} else {
return newvalue.getFullYear()+’-‘+(newvalue.getMonth()+1)+’-‘+(newvalue.getDate()+1);
}
}
},