|
MonthName Date FunctionIf 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 and Time Functions Bookmark this site so you can reference it any time you have ASP questions in the future! All content copyright © 2012 Minerva WebWorks LLC. All rights reserved.
|
|