if someboy has unexpected results using DayOfWeek:
"DayOfWeek" in EDB returns 1 for Monday as the first day of the week.
In Delphi there are two functions:
1. DayOfWeek which returns 1 for Sunday as the first day of the week
2. DayOfTheWeek, which is ISO 8601 compliant and returns 1 for Mondy as
the first day of the week.