Search DaTutorials:  
HOME
ASP Tutorials
Introduction
Reference
   Building ASP Pages
   Built-in Objects
Tutorials

Get the name of a month

Description:


How to Get the name of a month using ASP and VB Script.

Code:

<html> <body> <%
Response.Write("The first month name is: " & MonthName(1))
Response.Write("<br>The second month name is: " & MonthName(2))
Response.Write("<br>The third month name is: " & MonthName(3))
Response.Write("<br>The fourth month name is: " & MonthName(4))
Response.Write("<br>The fifth month name is: " & MonthName(5))
Response.Write("<br>The sixth month name is: " & MonthName(6))
Response.Write("<br>The seventh month name is: " & MonthName(7))
Response.Write("<br>The eighth month name is: " & MonthName(8))
Response.Write("<br>The ninth month name is: " & MonthName(9))
Response.Write("<br>The tenth month name is: " & MonthName(10))
Response.Write("<br>The eleventh month name is: " & MonthName(11))
Response.Write("<br>The twelfth month name is: " & MonthName(12))
%> </body> </html>

See working example:


Keywords:

ASP: Response.Write

VBScript: MonthName


     Web Advertising | Internet Advertising | Free Advertising | Online Advertising | Web Advertising
Home    Link To Us    Ad With Us    Contact Us    Tell A Friend    Affiliates    Blog    Stock Photos