Changing color based on time AND date

Help please!

I wanted the colors for a text to become green during Wed morning, while Gray in Wed evening.
I know how to change the colors depending on the days, but I can’t figure out how to do it with two conditions (including time). Please help!

To check if it’s day, you can use $ai(isday)$. So you can do something like the below on top of detecting if it’s Wednesday or not:

$if(ai(isday) = 1, #008000, #808080)$