(value)
return ''
Returns an empty string or a date value.

    Args:
        value (any): A string or an int/float that contains a timestamp
            value that can be parsed into a datetime.

    Returns:
        A string with the timestamp in ISO 8601 or an empty string if not
        able to parse the timestamp.
Returns an empty string or a date value.
Returns an empty string or a date value .
def get_datestring_from_value(value):
    """Returns an empty string or a date value.

    Args:
        value (any): A string or an int/float that contains a timestamp
            value that can be parsed into a datetime.

    Returns:
        A string with the timestamp in ISO 8601 or an empty string if not
        able to parse the timestamp.
    """
    if isinstance(value, six.string_types):
        try:
            date = dateutil.parser.parse(value)
            return date.isoformat()
        except ValueError:
            pass

    if isinstance(value, (int, float)):
        try:
            date = datetime.datetime.utcfromtimestamp(value / 1e6)
            return date.isoformat()
        except ValueError:
            pass
    return ''
def get_datestring_from_value ( value ) : if isinstance ( value , six . string_types ) : try : date = dateutil . parser . parse ( value ) return date . isoformat ( ) except ValueError : pass if isinstance ( value , ( int , float ) ) : try : date = datetime . datetime . utcfromtimestamp ( value / 1e6 ) return date . isoformat ( ) except ValueError : pass return ''