from datetime import datetime


def to_datetime(dict_date):
    """ Convert json date entry to datetime.
    :param dict_date: Date as retrieved from kanka in the format "YYYY-mm-dd HH:MM:SS.000000"
    :type dict_date: string
    :return: Date converted to python datetime object
    :rtype: datetime.datetime
    """
    t = dict_date.split(".")[0]
    return datetime.strptime(t, "%Y-%m-%dT%H:%M:%S")