How to check if today is Saturday or Sunday?

Hi everyone!

I’d like to know if there is any way to check if today is Saturday or Sunday in UiPath.

Thanks!

1 Like

@pal1910 check attached file Main.xaml (6.1 KB)

Simplest line would be -

DateTime.Now.DayOfWeek.ToString

You can have it used anywhere to check what day it is

13 Likes

How to get it as mon, tue, wed etc

Hi @Sweety_Girl
To get in form of mon, tue, wed
use this format for
Now.ToString(“ddd”)

Hope it helps you

Regards

Nived N
Happy Automation

2 Likes

“ddd” returns abbreviated name (Mon)
“dddd” returns full name (Monday)

3 Likes