Fungsi Nama Bulan VBScript


Referensi VBScript Lengkap

Fungsi MonthName mengembalikan nama bulan yang ditentukan.

Sintaksis

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

Contoh

Contoh 1

Dapatkan nama bulan ke-8:

<%

response.write(MonthName(8))

%>

Output dari kode di atas akan menjadi:

August

Contoh 2

Dapatkan nama pendek bulan ke-8:

<%

response.write(MonthName(8,True))

%>

Output dari kode di atas akan menjadi:

Aug

Referensi VBScript Lengkap