Fixed bug with date dialog calling onSetDate twice when OK was clicked
and once (wtf!) when CANCEL was clicked.