/home/web-programming/asp/

ASP MonthName Function

The ASP MonthName() function is used to return the name of a particular month.

ASP Coding for MonthName Function

<%

Response.Write monthName(Month(Date()))

%>


OR

<%

=monthName(Month(Date()))

%>


Result

August

MonthName Function Results
monthName(Month(Date())) August
monthName(Month(Now())) August
monthName(Month(6/02/2010)) December
monthName(1) January
monthName(2) February
monthName(3) March
monthName(4) April
monthName(5) May
monthName(6) June
monthName(7) July
monthName(8) August
monthName(10) October
monthName(11) November
monthName(12) December