reaccionar this.state.selecteddays.tolocaledateTestring no es una función

function formatTime(time, prefix = "") {
    return typeof time == "object" ? prefix + time.toLocaleDateString() : "";
}
Plain Piranha