VBScript AyAdı İşlevi
❮ Komple VBScript Referansı
MonthName işlevi, belirtilen ayın adını döndürür.
Sözdizimi
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 |
Örnekler
örnek 1
8. ayın adını alın:
<%
response.write(MonthName(8))
%>
Yukarıdaki kodun çıktısı şöyle olacaktır:
August
Örnek 2
8. ayın kısa adını alın:
<%
response.write(MonthName(8,True))
%>
Yukarıdaki kodun çıktısı şöyle olacaktır:
Aug
❮ Komple VBScript Referansı