|
-
Aug 26th, 2005, 09:51 PM
#1
Thread Starter
Fanatic Member
[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!
-
Aug 27th, 2005, 05:39 AM
#2
Re: monthname question
I don't believe a function exists just for that, so you'd need to write your own.
-
Aug 27th, 2005, 05:40 AM
#3
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.
-
Aug 28th, 2005, 10:17 PM
#4
Thread Starter
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|