Função VBScript MonthName
❮ Referência completa do VBScript
A função MonthName retorna o nome do mês especificado.
Sintaxe
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 |
Exemplos
Exemplo 1
Obter o nome do 8º mês:
<%
response.write(MonthName(8))
%>
A saída do código acima será:
August
Exemplo 2
Obtenha o nome curto do 8º mês:
<%
response.write(MonthName(8,True))
%>
A saída do código acima será:
Aug
❮ Referência completa do VBScript