Equinox Online Help - Language Reference - A to Z

Home

WeekStart

Applies to
SyntaxWeekstart(WeekExpression [, YearExpression])
Action[Function] Returns the date of the Monday for a specified week.
ScopeUsable anywhere.
Notes

This function returns the date of the Monday for a specified week. WeekExpression specifies the week and can take values from 1 to 53 inclusive. You may also specify YearExpression (as a number), which defaults to the current year if omitted.

CategoryDate handling
See Also Years, Year, Day, Dayname, Dayofweek, Dayofyear, Dmy, Dmyadd, Leapyear, Month, MonthName, Months, ServerDateTime, Today, Week, WeekOfYear
Example

This example sets the variable StartDate to the first day of the week specified by weekno (for the current year).

StartDate = Weekstart(weekno)?