g
Printer Friendly Version

editor  
BellaOnline's ASP Editor
 

MonthName Date Function

If you've got a date and want to display the real world name of that month to display, the monthname function is what you want.

This function does NOT take in a full date - it takes in the month's ID number. So January is 1, February is 2, and so on. You can easily get the month number from a date using the Month function. So your code might look something like this -

CurrDate = Now()
CurrMonthID = Month(CurrDate)
CurrMonthName = MonthName(CurrMonthID)
response.write "It is the lovely month of " & CurrMonthName

ASP Date Functions

ASP Site @ BellaOnline
View This Article in Regular Layout

Content copyright © 2013 by Lisa Shea. All rights reserved.
This content was written by Lisa Shea. If you wish to use this content in any manner, you need written permission. Contact Lisa Shea for details.



| About BellaOnline | Privacy Policy | Advertising | Become an Editor |
Website copyright © 2023 Minerva WebWorks LLC. All rights reserved.


BellaOnline Editor