0
Find weekends dates
Is there some code to detect weekends in a list of Dates. Now I have a list of 2500 dates records and I need to know which ones are weekends.
Thanks
3 replies
-
let inputDate := Date; format(inputDate, "d") = 6 or format(inputDate, "d") = 0
"d" in the format outputs the day of the week as a number 0 - 6
0 = Sunday
1 = Monday
...
6 = Saturday
This will output True if the Date is a Saturday/Sunday
-
weekday(date) works too.
Content aside
- Status Answered
- 2 yrs agoLast active
- 3Replies
- 52Views
-
3
Following