from dateutil import parser


def _get_date(medlineCitation):
    """Returns date of the given medline citation"""
    date = medlineCitation[u'DateCreated']
    dt = parser.parse(date[u'Year'] + '-' + date[u'Month'] + '-' + date[u'Day'])
    return str(dt.year) + '-' + str(dt.month) + '-' + str(dt.day)