I want this:
moment().format('LL'); // 4. Februar 2022But if it's today or yesterday it should say "Today or Yesterday" otherwise it should show this on top.
const today = moment().format('LL'); console.log(today); // => 'February 4, 2020' const yesterday = moment().subtract(1, 'day').format('LL'); console.log(yesterday); // => 'February 3, 2022'