Get month name from integer VB.NET

Use this simple VB.NET code to return the name of the month from an integer.
Example: 1 = January ….. 12 = December

Mike Hudson

Mike Hudson is a Infrastructure Analyst living and working in Kingston Upon Hull. With extensive experience in Microsoft and Apple technologies, ranging from desktop OS’s to Server OS’s and hardware. By day working as part of an infrastructure team, and by night ridding the world of IT issues through blog posts..

  • I Halligan

    Easier to use:–

    Dim xMonth As String = MonthName(MonthNum)

    MonthName is a builtIn function to VB.net

    • http://www.mikesel.info/ Mike Hudson

      Thanks for that suggestion. 🙂

  • I Halligan

    Easier to use:–

    Dim xMonth As String = MonthName(MonthNum)

    MonthName is a builtIn function to VB.net

    • http://www.mikesel.info/ Mike Hudson

      Thanks for that suggestion. 🙂

  • Pingback: URL()

%d bloggers like this: