Weekday()

Returns a value 1–7 representing the day of the week. The optional firstdayofweek argument specifies the first day of the week; the default is Sunday. The firstdayofweek option in IDEAScript does not seem to work.

Script: 
Sub Main
	Dim currentDate As Date
	Dim CurrentWeekDay As Integer
	oldDate = Now()
	oldWeekDay = Weekday(oldDate)
	MsgBox oldWeekDay
End Sub

 

IDEAScript Language: