1. Add argument for dateFormat for datepicker compatible with Aduvio system date format

dateFormat: $('#js-system-date-format').val(),

2. Add this to fields processing for db save

//Date Fields
if(empty($function_errors)) {
$date_fields=array('collection_date','document_couriered_date');
	foreach($date_fields as $date_field){
		if(isset($_POST[$date_field]) && !empty($_POST[$date_field])){							$_POST[$date_field]=Aduvio::transformDBDate($_POST[$date_field]);
		}
	}
}

3. Add this to the value attribute of the fields in the form

isset($data['collection_date']) ? Aduvio::displayDate($data['collection_date']) : ''; ?>