VBScript Reference Manual for InduSoft Web Studio
VBScript Reference Manual for InduSoft Web Studio
VBScript Reference Manual for InduSoft Web Studio
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>VBScript</strong> <strong>Reference</strong> <strong>Manual</strong> <strong>InduSoft</strong> <strong>Web</strong> <strong>Studio</strong><br />
WeekdayName<br />
Description Returns a Variant of subtype String indicating the specified day of the week.<br />
Usage strDayName = WeekdayName(weekday, [abbreviate], [firstdayofweek])<br />
Arguments weekday<br />
Required. The numeric designation <strong>for</strong> the day of the week. Numeric value of each day<br />
depends on setting of the firstdayofweek setting. Value is between 1 and 7.<br />
abbreviate<br />
Optional. Boolean value that indicates if the weekday name is to be abbreviated. If omitted,<br />
the default is False, which means that the weekday name is not abbreviated (is spelled out).<br />
firstdayofweek<br />
Optional. Numeric value indicating the first day of the week. See Settings section <strong>for</strong> values<br />
Settings The firstdayofweek argument can have the following values:<br />
Constant Value Description<br />
vbUseSystemDayofWeek 0 Use National Language Support (NLS) API setting<br />
vbSunday 1 Sunday (default)<br />
vbMonday 2 Monday<br />
vbTuesday 3 Tuesday<br />
vbWednesday 4 Wednesday<br />
vbThursday 5 Thursday<br />
vbFriday 6 Friday<br />
vbSaturday 7 Saturday<br />
Return A Variant of subtype String indicating the specified day of the week.<br />
Remarks A runtime error occurs if weekday is outside the valid range of 1-7. WeekdayName is<br />
internationally aware, which means that the returned strings are localized into the language that is<br />
specified in the system’s locale settings.<br />
See Also MonthName<br />
Example Dim MyDate<br />
MyDate = WeekDayName(6, True) ' MyDate contains Fri.<br />
Year<br />
Description Returns a whole number representing the year<br />
Usage Year(date)<br />
Arguments date<br />
The date argument is any valid expression that can represent a date.<br />
Remarks If date contains Null, Null is returned. A runtime error occurs if date is not a valid date expression.<br />
See Also Date, Day, Month, Now, Weekday<br />
Example(s) Dim MyDate, MyYear<br />
MyDate = #October 19, 1962# ' Assign a date.<br />
MyYear = Year(MyDate) ' MyYear contains 1962.<br />
168 <strong>InduSoft</strong>, Ltd.