from datetime import datetime


def convert_datetime_object(o):
    """
    Coerce input to datetime string
    :param datetime
    :return datetime <str>
    """
    if isinstance(o, datetime):
        return o.__str__()