SQL PHP HTML ASP JavaScript articles and free scripts to download
 

Getting Name of the Month by entering month number

We can get the months name by using the month number by using MonthName() function.
Here is the syntax for MonthName function.

MonthName(10)


Output of the above code is October.

It can take one more optional argument to return month name in long or short format. By default it is set to False

MonthName(10,False)


This will return October

MonthName(10, True )


This will return Oct



Further readings
Getting todays Date and Time based on local settings
Formatting date and time on local settings
Adding Date intervals using DateAdd function
Finding difference between two dates using DateDiff function
Collecting parts of Date by using DatePart function
Collecting Month name by using Month number by MonthName function
Collecting Name of the weekday of any Date by WeekDayName function
Generating Date variables by using Month, Day and Year Value
Function IsDate to check valid date or date variable
Checking user entered date value
 
Scripts
PHP
JavaScript
All ASP Tutorials
Popular Tutorials
Managing two drop downs
ASP Tutorials
Date and time
Declaring array
Form in ASP
Server.MapPath
Date Time & MSSQL
Select Query
File System Object
Subscribe
Submit your email address and receive article and product notifications. Your email is safe with us.