# Path: src/pycrunchbase/resource/utils.py
# def parse_date(datelike):
#     """Helper for parsing dates in Organization properties"""
#     try:
#         return datetime.strptime(datelike, "%Y-%m-%d")
#     except ValueError:
#         return datelike


import six
from .node import Node
from .utils import parse_date
        "videos",
        "news",
    ]

    KNOWN_PROPERTIES = [
        "permalink",
        "api_path",
        "web_path",
        "last_name",
        "first_name",
        "also_known_as",
        "bio",
        "profile_image_url",
        "role_investor",
        "born_on",
        "born_on_trust_code",
        "is_deceased",
        "died_on",
        "died_on_trust_code",
        "created_at",
        "updated_at",
    ]

    def _coerce_values(self):
        """A delegate method to handle parsing all data and converting
        them into python values
        """
        # special cases to convert strings to pythonic value
        for attr in ['born_on', 'died_on']:
            if getattr(self, attr, None):

# Path: src/pycrunchbase/resource/utils.py
# def parse_date(datelike):
#     """Helper for parsing dates in Organization properties"""
#     try:
#         return datetime.strptime(datelike, "%Y-%m-%d")
#     except ValueError:
#         return datelike


# Path: src/pycrunchbase/resource/person.py
import six
from .node import Node
from .utils import parse_date

        "videos",
        "news",
    ]

    KNOWN_PROPERTIES = [
        "permalink",
        "api_path",
        "web_path",
        "last_name",
        "first_name",
        "also_known_as",
        "bio",
        "profile_image_url",
        "role_investor",
        "born_on",
        "born_on_trust_code",
        "is_deceased",
        "died_on",
        "died_on_trust_code",
        "created_at",
        "updated_at",
    ]

    def _coerce_values(self):
        """A delegate method to handle parsing all data and converting
        them into python values
        """
        # special cases to convert strings to pythonic value
        for attr in ['born_on', 'died_on']:
            if getattr(self, attr, None):

                setattr(self, attr, parse_date(getattr(self, attr)))