find name of month

How can I get the name of a month by using its number, i.e. by using 4 I would like to get April.
I would like to do the same for the days of the week.
johnkainnAsked:
Who is Participating?
 
milduraitCommented:
function getDayName(byVal DayNo as long) as string

          'June 2008 started on a Sunday
          Dim dDate as new Date(2008,6,DayNo)
          return dDate.ToString("dddd")
 
end function
0
 
milduraitCommented:
This should do it...

function getMonth(byVal MonthNo as long) as string
 
        Dim dDate as new Date(2000,MonthNo,1)
        return dDate.ToString("MMMM")

end Function
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.