Checking today's date

I want to write an expression that can tell if today date and time is Sunday 10pm-11:59:59pm or monday 12am - 6am

What would be the best way to do this?

Hi @duaine.b

How about this expression ?

You can try with this expression in the If activity

Now.DayOfWeek = DayOfWeek.Sunday And Now.Hour >= 22 or Now.DayOfWeek = DayOfWeek.Monday And Now.Hour < 6

Regards
Gokul

@duaine.b

You can use this in if condition

(Now.DayOfWeek.ToString.Equals("Sunday") And Now > New Date(Now.Year, Now.Month, Now.Day, 22, 0, 0)) Or (Now.DayOfWeek.ToString.Equals("Monday") And Now < New Date(Now.Year, Now.Month, Now.Day, 6, 0, 0))

cheers

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.