Link:http://output.to/sideway/default.asp?qno=180300026 Script, Scripting Language, VBScript elements, Server-Side VBScript Function MonthName, WeekdayName Function VBScript Date/Time FunctionsFunctions for manipulating date or time expression. MonthName Functionlast updated 9/20/2017Create a String from a given month expression by taking the given month expression as the numeric designation of the month between 1 and 12 inclusive, and with value representing the corresponding month of a year according to the specified abbreviate setting. SyntaxMonthName(month[, abbreviate]) ArgumentmonthRequired. Any valid numeric expression, which is equal to Round(month), with value between 1 and 12 inclusive as the numeric designation of the month of a year.abbreviateOptional setting. Boolean value that is used to indicate if the returned month name is to be abbreviated. If abbreviate setting is omitted, false or 0 is used which means that the returned month name is not abbreviated.Settingsabbreviate setting: abbreviateDescription1, Truereturned month name is abbreviated.0, False (default)returned month name is not abbreviated. ReturnsReturns a Variant of String data subtype containing the String obtained from a given month expression by taking the given month expression as the numeric designation of the month between 1 and 12 inclusive, and with value representing the corresponding month of a year according to the specified abbreviate setting.Returns of function: monthMonthName(month), MonthName(month,0)MonthName(month,1)1JanuaryJan2FebruaryFeb3MarchMar4AprilApr5MayMay6JuneJun7JulyJul8AugustAug9SeptemberSep10OctoberOct11NovemberNov12DecemberDec Special returns of function: monthreturn valueNullRun-time ErrorEmptyRun-time Error""Run-time Error Remarks
Requirement2ExamplesExamples of MonthName function ASP VbScript Command:
HTML Web Page In-line Output: Results on Microsoft Windows 8.1 Pro x64, Microsoft-IIS/8.5, VBScript Version 5.8 of page /internet/users/sideblog/default.asp varsmth, TypeNameMonthName(mth), TypeNameMonthName(mth,0), TypeNameMonthName(mth,1), TypeNamemth="1.4"[1.4], String[January], String[January], String[Jan], Stringmth=2.6[2.6], Double[March], String[March], String[Mar], Stringmth=2.5[2.5], Double[February], String[February], String[Feb], Stringmth=2.4[2.4], Double[February], String[February], String[Feb], Stringmth=1.6[1.6], Double[February], String[February], String[Feb], Stringmth=1.5[1.5], Double[February], String[February], String[Feb], Stringmth=1.4[1.4], Double[January], String[January], String[Jan], Stringmth=1[1], Integer[January], String[January], String[Jan], Stringmth=2[2], Integer[February], String[February], String[Feb], Stringmth=3[3], Integer[March], String[March], String[Mar], Stringmth=4[4], Integer[April], String[April], String[Apr], Stringmth=5[5], Integer[May], String[May], String[May], Stringmth=6[6], Integer[June], String[June], String[Jun], Stringmth=7[7], Integer[July], String[July], String[Jul], Stringmth=8[8], Integer[August], String[August], String[Aug], Stringmth=9[9], Integer[September], String[September], String[Sep], Stringmth=10[10], Integer[October], String[October], String[Oct], Stringmth=11[11], Integer[November], String[November], String[Nov], Stringmth=12[12], Integer[December], String[December], String[Dec], String WeekdayName Functionlast updated 9/21/2017Create a String from a given weekday expression by taking the given weekday expression as the numeric designation of the week between 1 and 7 inclusive based on the specified firstdayofweek setting, and with value representing the corresponding weekday of a week according to the specified abbreviate setting. SyntaxWeekdayName(weekday[, abbreviate[, firstdayofweek]]) ArgumentweekdayRequired. The numeric designation for the day of the week. Numeric value of each day depends on setting of the firstdayofweek setting.abbreviateOptional. Boolean value that indicates if the weekday name is to be abbreviated. If omitted, the default is False, which means that the weekday name is not abbreviated.firstdayofweekOptional. Numeric value indicating the first day of the week. See Settings section for values.Settingsabbreviate argument: abbreviateDescription1, Truereturned month name is abbreviated.0, False (default)returned month name is not abbreviated. firstdayofweek argument vbConstantValueDescriptionvbUseSystemDayOfWeek0Use National Language Support (NLS) API setting.vbSunday1(default)Sunday .vbMonday2Monday.vbTuesday3Tuesday.vbWednesday4Wednesday.vbThursday5Thursday.vbFriday6Friday.vbSaturday7Saturday. ReturnsReturns a Variant of String data subtype containing the String obtained from a given weekday expression by taking the given weekday expression as the numeric designation of the week between 1 and 7 inclusive based on the specified firstdayofweek setting, and with value representing the corresponding weekday of a week according to the specified abbreviate setting.Returns of function: Default Weekday= weekday+ firstdayofweek-1WeekdayName(weekday), WeekdayName(weekday,0)WeekdayName(weekday,1)1SundaySun2MondayMon3TuesdayTue4WednesdayWed5ThursdayThu6FridayFri7SaturdaySat Special returns of function: monthreturn valueNullRun-time ErrorEmptyRun-time Error""Run-time Error Remarks
Requirement2ExamplesExamples of functions ASP VbScript Command:
HTML Web Page In-line Output: Results on Microsoft Windows 8.1 Pro x64, Microsoft-IIS/8.5, VBScript Version 5.8 of page /internet/users/sideblog/default.asp varswkd, TypeNameWeekdayName(wkd), TypeNameWeekdayName(wkd,abb), TypeNameWeekdayName(wkd,abb,1), TypeNameWeekdayName(wkd,abb,2), TypeNameWeekdayName(wkd,abb,3), TypeNameWeekdayName(wkd,abb,4), TypeNameWeekdayName(wkd,abb,5), TypeNameWeekdayName(wkd,abb,6), TypeNameWeekdayName(wkd,abb,7), TypeNamewkd="1":abb=Empty[1], String[Sunday], String[Sunday], String[Sunday], String[Monday], String[Tuesday], String[Wednesday], String[Thursday], String[Friday], String[Saturday], Stringwkd="1.5":abb=Empty[1.5], String[Monday], String[Monday], String[Monday], String[Tuesday], String[Wednesday], String[Thursday], String[Friday], String[Saturday], String[Sunday], Stringwkd="2":abb=Empty[2], String[Monday], String[Monday], String[Monday], String[Tuesday], String[Wednesday], String[Thursday], String[Friday], String[Saturday], String[Sunday], Stringwkd="2.5":abb=Empty[2.5], String[Monday], String[Monday], String[Monday], String[Tuesday], String[Wednesday], String[Thursday], String[Friday], String[Saturday], String[Sunday], Stringwkd="3":abb=Empty[3], String[Tuesday], String[Tuesday], String[Tuesday], String[Wednesday], String[Thursday], String[Friday], String[Saturday], String[Sunday], String[Monday], Stringwkd=1:abb=0[1], Integer[Sunday], String[Sunday], String[Sunday], String[Monday], String[Tuesday], String[Wednesday], String[Thursday], String[Friday], String[Saturday], Stringwkd=2:abb=0[2], Integer[Monday], String[Monday], String[Monday], String[Tuesday], String[Wednesday], String[Thursday], String[Friday], String[Saturday], String[Sunday], Stringwkd=3:abb=0[3], Integer[Tuesday], String[Tuesday], String[Tuesday], String[Wednesday], String[Thursday], String[Friday], String[Saturday], String[Sunday], String[Monday], Stringwkd=4:abb=0[4], Integer[Wednesday], String[Wednesday], String[Wednesday], String[Thursday], String[Friday], String[Saturday], String[Sunday], String[Monday], String[Tuesday], Stringwkd=5:abb=0[5], Integer[Thursday], String[Thursday], String[Thursday], String[Friday], String[Saturday], String[Sunday], String[Monday], String[Tuesday], String[Wednesday], Stringwkd=6:abb=0[6], Integer[Friday], String[Friday], String[Friday], String[Saturday], String[Sunday], String[Monday], String[Tuesday], String[Wednesday], String[Thursday], Stringwkd=7:abb=0[7], Integer[Saturday], String[Saturday], String[Saturday], String[Sunday], String[Monday], String[Tuesday], String[Wednesday], String[Thursday], String[Friday], Stringwkd=1:abb=1[1], Integer[Sunday], String[Sun], String[Sun], String[Mon], String[Tue], String[Wed], String[Thu], String[Fri], String[Sat], Stringwkd=2:abb=1[2], Integer[Monday], String[Mon], String[Mon], String[Tue], String[Wed], String[Thu], String[Fri], String[Sat], String[Sun], Stringwkd=3:abb=1[3], Integer[Tuesday], String[Tue], String[Tue], String[Wed], String[Thu], String[Fri], String[Sat], String[Sun], String[Mon], Stringwkd=4:abb=1[4], Integer[Wednesday], String[Wed], String[Wed], String[Thu], String[Fri], String[Sat], String[Sun], String[Mon], String[Tue], Stringwkd=5:abb=1[5], Integer[Thursday], String[Thu], String[Thu], String[Fri], String[Sat], String[Sun], String[Mon], String[Tue], String[Wed], Stringwkd=6:abb=1[6], Integer[Friday], String[Fri], String[Fri], String[Sat], String[Sun], String[Mon], String[Tue], String[Wed], String[Thu], Stringwkd=7:abb=1[7], Integer[Saturday], String[Sat], String[Sat], String[Sun], String[Mon], String[Tue], String[Wed], String[Thu], String[Fri], String |
Sideway BICK Blog 26/03 |