VBScript WeekdayName 함수
❮ 완전한 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
주의 세 번째 요일의 이름을 가져옵니다.
<%
response.write(WeekdayName(3))
%>
위 코드의 출력은 다음과 같습니다.
Tuesday
실시예 2
세 번째 요일의 짧은 이름을 가져옵니다.
<%
response.write(WeekdayName(3,True))
%>
위 코드의 출력은 다음과 같습니다.
Tue
실시예 3
첫 번째 요일이 월요일인 주의 세 번째 요일의 이름을 가져옵니다.
<%
response.write(WeekdayName(3,False,2))
%>
위 코드의 출력은 다음과 같습니다.
Wednesday
❮ 완전한 VBScript 참조