VBScript 월 이름 함수


❮ 완전한 VBScript 참조

MonthName 함수는 지정된 월의 이름을 반환합니다.

통사론

MonthName(month[,abbreviate])

Parameter Description
month Required. Specifies the number of the month (January is 1, February is 2, etc.)
abbreviate Optional. A Boolean value that indicates if the month name is to be abbreviated. Default is False

실시예 1

8번째 달의 이름 얻기:

<%

response.write(MonthName(8))

%>

위 코드의 출력은 다음과 같습니다.

August

실시예 2

8번째 달의 짧은 이름을 가져옵니다.

<%

response.write(MonthName(8,True))

%>

위 코드의 출력은 다음과 같습니다.

Aug

❮ 완전한 VBScript 참조