Complete port of DayViewController.