DEV Community

ouryperd
ouryperd

Posted on

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)