Syntax
| Weekday(dateexpr)
| |||||
---|---|---|---|---|---|---|
Description
| Return the weeknumber.
| |||||
See Also
| ||||||
Example
| Sub Main
Dim myDate As Date
myDate = #2010/1/5# 'Note that the year 2009 has 53 weeks
Debug.Print WeekNum(myDate) '1
Debug.Print DatePart("ww",myDate) '2
End Sub
|