from datetime import datetime


def convert_datetime_to_string(v):
    """
    Parses datetime object into string
    """
    if isinstance(v, datetime):
        return v.strftime('%Y-%m-%dT%H:%M:%S')
    return v