Test string representation of DateTime and other objects.