How can I say "Today" and Yesterday" with Moment?

Viewed 31

I want this:

moment().format('LL');   // 4. Februar 2022

But if it today or yesterday it should say "Today or Yesterday" else it should display this above

0 Answers
Related