Having a hard time getting daysOfWeek in scripted field

Resolved, solution can be found here in the forum: Filter by Day Of Week