reaksi this.state.selecteddays.tolocaledateString bukan fungsi

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