I am trying to build a task scheduler that will use OS timers to produce reports or emails, and run queries only during user-defined time windows, via the criteria shown in the attachment.
In order, the first input field shown requires a numeric value, the drop down next to it offers a choice of "minutes", "hours", "days", "weeks" and months".
The Day Range drop down offers "daily", "Mon-Fri" or "specified day".
In the attached example, it is expected that the report should run every two hours, but only between the times of 0800 and 1600hrs, Mondays to Fridays, beginning on 12 April 2019.
However there is no functionality to cater for specified days or times in this way.
The "add" functions aren't flexible enough to achieve this, and the NewDate, BuildDate and DayOfWeek functions use integers; achieving the conversion by using DateToText and TextToInteger (and then back again when required) is not ideal at runtime.
Additional functionality to cater for working week requirements and specified time/day windows would improve the function suite.