How do I - Determine if its currently a weekday vs weekend?

Get help using Construct 2

Post » Tue Aug 26, 2014 1:31 pm

Is there a easy way i can determine if its a weekday vs weekend? I'm using rex's handy plugin http://c2rexplugins.weebly.com/rex_date.html to get the date easily,

But just not sure if there's a nice easy way to determine the weekday vs weekend thing.
B
90
S
44
G
17
Posts: 1,012
Reputation: 18,527

Post » Wed Aug 27, 2014 2:28 am

I found the solution

The expression with Rex's plugin is date.day
It will return a number 0 through 6

0 is Sunday
1 is Monday
2 is Tuesday etc....

So the weekends are 0 and 6

Yay!
B
90
S
44
G
17
Posts: 1,012
Reputation: 18,527


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 26 guests