18.01.2013 Views

VBScript Reference Manual for InduSoft Web Studio

VBScript Reference Manual for InduSoft Web Studio

VBScript Reference Manual for InduSoft Web Studio

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>InduSoft</strong> <strong>Web</strong> <strong>Studio</strong> <strong>VBScript</strong> <strong>Reference</strong> <strong>Manual</strong><br />

Month<br />

Description Returns a whole number between 1 and 12, inclusive, representing the month of the year<br />

Usage intVal = Month(date)<br />

Arguments date<br />

The date argument is any valid expression that can represent a date.<br />

Return An integer value<br />

Remarks A runtime error occurs if time is not a valid time expression. If time contains Null, Null is returned.<br />

See Also Date, Day, Hour, Minute, Now, Second, Weekday, Year<br />

Example Dim MyVar<br />

MyVar = Month(Now) ‘MyVar contains the number = the current month.<br />

MonthName<br />

Description Returns a string indicating the specified month.<br />

Usage strVal = MonthName(month[, abbreviate])<br />

Arguments month<br />

Required. A number between 1 and 12 <strong>for</strong> each month of the year, beginning in January. For<br />

example, January is 1, February is 2, and so on.<br />

abbreviate<br />

Optional. Boolean value that indicates if the month name is to be abbreviated. If omitted, the<br />

default is False, which means that the month name is not abbreviated (it is spelled out).<br />

Return A String.<br />

Remarks A runtime error if month is outside the valid range (1-12). MonthName is internationally aware,<br />

meaning that the returned string is localized by the language specified as part of your locale<br />

setting.<br />

See Also WeekDayName<br />

Example Dim MyVar<br />

MyVar = MonthName(10, True) ' MyVar contains "Oct".<br />

<strong>InduSoft</strong>, Ltd. 149

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!