code: def get_creation_date(brain_or_object):
      
      created = getattr(brain_or_object, "created", None)
      if created is None:
          fail("Object {} has no creation date ".format(
               repr(brain_or_object)))
      if callable(created):
          return created()
      return created
docs: Get the creation date of the brain or object
  
      :param brain_or_object: A single catalog brain or content object
      :type brain_or_object: ATContentType/DexterityContentType/CatalogBrain
      :returns: Creation date
      :rtype: DateTime