VBScriptWeekdayName関数_
❮完全なVBScriptリファレンス
WeekdayName関数は、指定された曜日の曜日名を返します。
構文
WeekdayName(weekday[,abbreviate[,firstdayofweek]])
Parameter | Description |
---|---|
weekday | Required. The number of the weekday |
abbreviate | Optional. A Boolean value that indicates if the weekday name is to be abbreviated |
firstdayofweek | Optional. Specifies the first day of the week. Can take the following values:
|
例
例1
週の3日の名前を取得します。
<%
response.write(WeekdayName(3))
%>
上記のコードの出力は次のようになります。
Tuesday
例2
週の3日の短縮名を取得します。
<%
response.write(WeekdayName(3,True))
%>
上記のコードの出力は次のようになります。
Tue
例3
週の3日目の名前を取得します。最初の日は月曜日です。
<%
response.write(WeekdayName(3,False,2))
%>
上記のコードの出力は次のようになります。
Wednesday
❮完全なVBScriptリファレンス