Code cleanup of inline date picker.