def get_anniversary(self):
<EOL>try:<EOL><INDENT>if self.vcard.anniversary.params.get("<STR_LIT>")[<NUM_LIT:0>] == "<STR_LIT:text>":<EOL><INDENT>return self.vcard.anniversary.value<EOL><DEDENT><DEDENT>except (AttributeError, IndexError, TypeError):<EOL><INDENT>pass<EOL><DEDENT>try:<EOL><INDENT>return helpers.string_to_date(self.vcard.anniversary.value)<EOL><DEDENT>except (AttributeError, ValueError):<EOL><INDENT>try:<EOL><INDENT>return helpers.string_to_date(self.vcard.x_anniversary.value)<EOL><DEDENT>except (AttributeError, ValueError):<EOL><INDENT>pass<EOL><DEDENT><DEDENT>return None<EOL>
:returns: contacts anniversary or None if not available
            :rtype: datetime.datetime or str