![]() |
|
|
Getting the Name of the Current Month using the MonthName functionBelow is of snippet of code that will return the name of the current month using the MonthName VBScript function. In the code below the Month function will return a number between 1 and 12 based on the date function. Next the MonthName function will return the corresponding month name based on the argument between 1 and 12. <%
Response.Write MonthName(month(date)) %> Below is our code in action: If you wanted to shorten the month name returned just use the extra parameter below. <%
Response.Write MonthName(month(date), true) %> Below is our code in action:
Find out how to get the name
of the current day
Site developed by Michael Wall - Web Design Belfast N.Ireland. |
|