# 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
        "api_path",
        "web_path",
        "funding_type",
        "series",
        "series_qualifier",
        "announced_on",
        "announced_on_trust_code",
        "closed_on",
        "closed_on_trust_code",
        "money_raised",
        "money_raised_currency_code",
        "money_raised_usd",
        "target_money_raised",
        "target_money_raised_currency_code",
        "target_money_raised_usd",
        "created_at",
        "updated_at",
    ]

    KNOWN_RELATIONSHIPS = [
        "investments",
        "funded_organization",
        "images",
        "videos",
        "news",
    ]

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

        "api_path",
        "web_path",
        "funding_type",
        "series",
        "series_qualifier",
        "announced_on",
        "announced_on_trust_code",
        "closed_on",
        "closed_on_trust_code",
        "money_raised",
        "money_raised_currency_code",
        "money_raised_usd",
        "target_money_raised",
        "target_money_raised_currency_code",
        "target_money_raised_usd",
        "created_at",
        "updated_at",
    ]

    KNOWN_RELATIONSHIPS = [
        "investments",
        "funded_organization",
        "images",
        "videos",
        "news",
    ]

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

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