DEV Community

ouryperd
ouryperd

Posted on

2 1

Easiest way to find out if today is a weekday in Groovy

This is a very easy way to find out if today is a weekday:

['Mon', 'Tue', 'Wed', 'Thu', 'Fri'].contains(new Date().format("E"))

Top comments (0)

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay