techpreparation-homepage

Home  Interview Questions  Aptitude Questions  Tutorials  Placement Papers  Search  Resume Guide  Soft Skills  Video  Forum  Blog


Technical Interview Questions

Visual Basic Interview Question
.NET Web Interview Questions
.NET Interview Questions
C# Interview Questions
                              .........More

Source Codes
Asp .NET Source Codes
Asp VB Script Source Codes
                              .........More

Soft Skills
Communication Skills
Leadership Skills
                              .........More

Subscribe to our Newsletters
Name:
Email:

 

 

  

Asp/VB Script Source Codes

Display the name of a month using ASP

<P>How can you get the name of the month . Once again VBScript provides a useful function MonthName(month ,[abbreviate]) . this takes a number between 1 and 12 which represents the month and has an optional parameter which if set to True will abbreviate the month . So November becomes Nov .</P>
<P>&lt;%<BR>Dim theDate , theMonth<BR>'store the month in numerical format in theDate<BR>theDate = Month(Now())<BR>'store the name of the month in theMonth<BR>theMonth = MonthName(theDate)<BR>'display the month name<BR>Response.Write theMonth<BR>%&gt;</P>


<<<----- Return to Asp/VB Script Source Code Questions Page.


Have a Question ? post your questions here. It will be answered as soon as possible.

Check Microsoft .Net Interview Questions for more Microsoft .Net Interview Questions with Answers.

Check .Net Database Interview Questions for more .Net Database Interview Questions with answers

Check Job Interview Questions for more Interview Questions with Answers