Changed date control to correct type.