how to get the datePicker value, intercept it, make changes, and then put it yourself in the input. This is my code, so it inserts a date into the component, and I need the date to fit in the variable only.
$( e.target).datepicker({ onSelect: date => { console.log(date); } }).focus();