DayMatchQ
DayMatchQ[date, daytype] returns True if the date matches the daytype specification and returns False otherwise.
Examples
Check if a date is a weekend:
DayMatchQ[{2024, 1, 6}, "Weekend"]
(* True - Saturday *)Check if it's a business day:
DayMatchQ[{2024, 1, 5}, "BusinessDay"]
(* True - Friday *)Please visit the official Wolfram Language Reference for more details.