I’m trying to switch text depending on dates.
document.getElementById('test').innerHTML = today.toISOString().substring(0, 10) == '2021-12-05' ? 'A' : 'B';
But I don’t want to update the text after this day, for example, if today is ‘2021-12-05’, the text will show ‘A’ until forever, test B will be displayed before ‘2021-12-05’ . Thanks for your help, much appreciated.