Skip to content

libDate_dayOfWeek question #15

@macMikey

Description

@macMikey

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions