app/pb_kits/playbook/pb_date_picker/docs/_date_picker_on_close

The onClose handler function has access to two arguments: dateStr and selectedDates.

The first, dateStr, is a string of the chosen date. The second, selectedDates, is an array of selected date objects. In many use cases selectedDates will have only one value but you’ll still need to access it from index 0.

NOTE: onClose is the ideal handler function to use when allowInput is enabled.