the DOW function can take a second parameter Start of Week.
So
Function GetStartOfWeek
lPara ldDate
return (ldDate - dow(ldDate, 2) + 1)
endFunc
Is simpler.
Andrew R.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only