UI date handling.

 * Sort selected dates (ascending).
 * An already selected date cannot be selected again.
 * Format submitted date.