def taskfile_updated_data(file_, role):
    """Return the data for updated date

    :param file_: the file that holds the data
    :type file_: :class:`jukeboxcore.djadapter.models.File`
    :param role: item data role
    :type role: QtCore.Qt.ItemDataRole
    :returns: data for the updated date
    :rtype: depending on role
    :raises: None
    """
    if role == QtCore.Qt.DisplayRole or role == QtCore.Qt.EditRole:
        dt = file_.date_updated
        return dt_to_qdatetime(dt)