Add readOnly property to DateAttributeFactory.