date-selector: fire MODIFIED signal

Also, some code cleanup.