Revert "Revert "Simplified Tree.hasDateTrait().""

This reverts commit ce1803fdb92a79bccd5a1ebeb27bc22ce7973d58.