-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Why not pick off the last item of dateItems for this routine instead of doing all the work that you do?
I think that code would be something like
function libDate_dayOfWeek pYear,pMonth,pDay
put pYear,pMonth,pDay,0,0,0,0 into theDate
convert theDate to dateItems
return last item of theDate -1 #dateItems goes 1..7 for Sun..Sat
end libDate_dayOfWeek
Metadata
Metadata
Assignees
Labels
No labels