Architect DateTimeDiff vs GetDayOfWeek for OTel span triggers

Building a Data Action that needs to distinguish weekdays from weekends for tracing context.

Using DateTimeDiff with dateFrom and dateTo returns the difference in days, but I need a boolean flag. GetDayOfWeek returns an integer (1-7).

Is there a cleaner expression syntax than nested IF statements to check if GetDayOfWeek(CurrentDateTime) > 5? The current logic feels verbose for a simple weekend check in the span attributes.

Watch out for timezone mismatches in your Architect settings. If your system clock is UTC but your team is in London, GetDayOfWeek might flag Saturday as Friday. A simple comparison works fine. Just wrap it in an AND statement to keep the logic tight.

GetDayOfWeek(CurrentDateTime) > 5