<< Click to Display Table of Contents >>
Manual > Control Reference > Route > Route Methods >
Calculate the day of the week from the time.
syntax
GetDayOfWeek(
time
)
Parameters
Type:
time.
Return Value
Number
Day of the week (1-Sunday, 2-Monday, 3-Tuesday, 4-Wednesday, 5-Thursday, 6-Friday, 7-Saturday). -1 on failure.
Explanation
Calculates the day of the week from a time (year, month, date).
Supported
○
Script Action
Can be used in server script Ver2 actions
Browser script
Can be used in browser scripts
Calculation Expression Syntax
Can be used in expression syntax (e.g. bind syntax)
reference
GetTickTime
GetTickTimeSpan
GetClientTime
IsCurrentTime
GetRelativeTime
GetYear
GetMonth
GetDay
GetHour
GetMinute
GetSecond
GetMilliseconds
GetDayOfYear
GetDayOfWeek