def datetime_formatter(input_datetime_object, strfmt='%Y-%m-%d %H:%M:%S.%f'):

    """
    Convert a datetime object to a single normalized time format readable by Excel
    """
    if input_datetime_object is None:
        return None
    else:
        return input_datetime_object.strftime(strfmt)