Navigation:  Macros > Macro Language > Built-in Functions > All Functions (Alphabetical) >


Previous pageReturn to chapter overviewNext page

int = WeekStartOfMonth(nYear,nMonth,nWeekstartDay)


For any nYear and nMonth, this macro function returns the date corresponding to the beginning of the week that contains the first day of that month. This function is used internally by Q++Studio to calculate the very first date of MiniCalendars.


nWeekstartDay : ranges from 1 (Monday) to 7 (Sunday) and allows you to use any weekday as the "first day of the week".


See also : WeekStartOf.

Topic 110007 updated on 03-May-2018.
Topic URL: https://www.qppstudio.net/webhelp/index.html?weekstartofmonth.htm