<< Click to Display Table of Contents >> Navigation: ThinBASIC Core Language > BuiltIn Functions > Date and Time > cDateTime > cDateTime_Properties > <cDateTime>.DayOfWeek |
Description
Returns the Day-of-Week component of the cDateTime object.
Syntax
n = <cDateTime>.DayOfWeek
Returns
Number.
It is a numeric value in the range of 1-7 (representing Monday through Sunday).
Remarks
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 day of week:" + $CRLF + myDateTime.DayOfWeek