|
-
Jul 23rd, 2003, 12:01 PM
#1
Thread Starter
Frenzied Member
Months
Anyone got a quick and easy way to turn a string of a 3 char abbr of a month into a number, ie Jan = 1, Feb = 2, etc.
I was going to make a map, but I was wondering if there is already a function out there to do it.
MSVS 6, .NET & .NET 2003 Pro
I HATE MSDN with .NET & .NET 2003!!!
Check out my sites:
http://www.filthyhands.com
http://www.techno-coding.com

-
Jul 23rd, 2003, 12:33 PM
#2
Not in any standard library. Someone might have written one.
But the standard library doesn't contain such highly locale-dependent things as month names.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Jul 23rd, 2003, 12:40 PM
#3
Thread Starter
Frenzied Member
Ok 
I just didnt want to do any extra work if I didnt have too
MSVS 6, .NET & .NET 2003 Pro
I HATE MSDN with .NET & .NET 2003!!!
Check out my sites:
http://www.filthyhands.com
http://www.techno-coding.com

-
Jul 23rd, 2003, 01:05 PM
#4
It's a real problem with dates. Simply porting your app to German for example would require changes to the month names. That's ok.
Porting the app to Arabic or Hebreic would be a disaster. They use different calendars...
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Jul 23rd, 2003, 01:06 PM
#5
Thread Starter
Frenzied Member
*shutters* Thank god my apps are only used in house
Luckily I found a parser someone else made that did all the hard work for me already. So I am off the hook.
MSVS 6, .NET & .NET 2003 Pro
I HATE MSDN with .NET & .NET 2003!!!
Check out my sites:
http://www.filthyhands.com
http://www.techno-coding.com

-
Jul 24th, 2003, 01:27 AM
#6
That's why so many methods of the java Date class are deprecated and the Calendar class hierarchy was introduced.
The .Net framework has something similar.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
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
|