WeekDay Function [Runtime]/text/sbasic/shared/03030105.xhpWeekDay functionWeekDay Function [Runtime]Returns the number corresponding to the weekday represented by a serial date number that is generated by the DateSerial or the DateValue function.Syntax:WeekDay (Number)Return value:IntegerParameters:Number: Integer expression that contains the serial date number that is used to calculate the day of the week (1-7).The following example determines the day of the week using the WeekDay function when you enter a date.Example:Sub ExampleWeekDayDim sDay As StringREM Return and display the day of the weekSelect Case WeekDay( Now )case 1sDay="Sunday"case 2sDay="Monday"case 3sDay="Tuesday"case 4sDay="Wednesday"case 5sDay="Thursday"case 6sDay="Friday"case 7sDay="Saturday"End Selectmsgbox "" + sDay,64,"Today is"End Sub