I have a datepicker showing 'dd/mm/yy' in the Edit Form of a jqgrid and I want to send to the server the date in the 'yy/mm/dd' format. Im avoiding unformat in the server side. I wanna know if theres something like beforeSubmit function for the edit form. Tried to unformat it but aparently unformat isnt called when the form is submitted. Im using datainit to call the datepicker.
editoptions:{size:18, dataInit: function (elem) {
$(elem).datepicker({ dateFormat: 'dd/mm/yy', maxDate: +0 })
}
Any ideas?