|
<< Click to Display Table of Contents >> Navigation: ThinBASIC Core Language > BuiltIn Functions > Date and Time > cDateTime > cDateTime_Properties > <cDateTime>.WeekOfYear |
Description
Returns the week of the year since the beginning of the year.
Syntax
n = <cDateTime>.WeekOfYear
Returns
Number
Remarks
Week from Monday to sunday
Restrictions
Read only.
See also
Examples
' Create an object with current date and time
Dim myDateTime As New cDateTime
' Show it to the user
MsgBox 0, "myDateTime WeekOfYear:" + $CRLF + myDateTime.WeekOfYear