Fixed bug with long date values in datebox.