function setYearFilter(value, updateUrl, which){
        value = +value + (which === 'from' ? 0.001 : -0.001);

        if (value < 1 && value > 0) {
            const date = new Date(now - Math.pow(value, 1.45) * 10 * 365.25 * 86400 * 1000)
                .toISOString().substring(0,10);
            context.photos().setDateFilter(`${which}Date`, date, updateUrl);
        } else {
            context.photos().setDateFilter(`${which}Date`, null, updateUrl);
        }
    }
Util function to set the slider date filter
@param {Number} value The slider value
@param {Boolean} updateUrl whether the URL should update or not
@param {string} which to set either the 'from' or 'to' date