Handle type of dialogView in EntryWin instead of in EntryFieldView.
Add mergeDateAndTime function to neaten code.
Assigned default value for textFormatter to prevent crashing.