# 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
        "name",
        "also_known_as",
        "lifecycle_stage",
        "profile_image_url",
        "launched_on",
        "launched_on_trust_code",
        "closed_on",
        "closed_on_trust_code",
        "homepage_url",
        "short_description",
        "description",
        "created_at",
        "updated_at",
    ]

    KNOWN_RELATIONSHIPS = [
        "owner",
        "categories",
        "primary_image",
        "competitors",
        "customers",
        "websites",
        "images",
        "videos",
        "news",
    ]

    def _coerce_values(self):
        for attr in ['launched_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/product.py
import six
from .node import Node
from .utils import parse_date

        "name",
        "also_known_as",
        "lifecycle_stage",
        "profile_image_url",
        "launched_on",
        "launched_on_trust_code",
        "closed_on",
        "closed_on_trust_code",
        "homepage_url",
        "short_description",
        "description",
        "created_at",
        "updated_at",
    ]

    KNOWN_RELATIONSHIPS = [
        "owner",
        "categories",
        "primary_image",
        "competitors",
        "customers",
        "websites",
        "images",
        "videos",
        "news",
    ]

    def _coerce_values(self):
        for attr in ['launched_on']:
            if getattr(self, attr, None):

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