Results 1 to 4 of 4

Thread: [RESOLVED] monthname question

  1. #1

    Thread Starter
    Fanatic Member VBKNIGHT's Avatar
    Join Date
    Oct 2000
    Location
    Port25
    Posts
    619

    Resolved [RESOLVED] monthname question

    is there a vb function that will convert string month like "Jan" into integer value of 1?

    TIA

    If a post has helped you then Please Rate it!

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: monthname question

    I don't believe a function exists just for that, so you'd need to write your own.

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: monthname question

    You could use the Month function (Microsoft.VisualBasic namespace) by passing your monthname along with " 1, 2005" appended to it... something like

    MessageBox.Show(Month(Date.Parse(strMonthName & " 1, 2005")))

    Not sure, but you'd have to try this out, as I don't have the IDE open.

  4. #4

    Thread Starter
    Fanatic Member VBKNIGHT's Avatar
    Join Date
    Oct 2000
    Location
    Port25
    Posts
    619

    Re: monthname question

    ok thanks, well i guess i have to use my own function for this for now.

    If a post has helped you then Please Rate it!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width