<< Click to Display Table of Contents >>
Navigation: ThinBASIC Language > BuiltIn Functions > Date and Time > cDateTime > cDateTime_Properties >
Returns the Day-of-Week component of the cDateTime object.
n = <cDateTime>.DayOfWeek
It is a numeric value in the range of 1-7 (representing Monday through Sunday).
' 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