add constraints to time and date widgets