|
-
Jan 17th, 2000, 07:19 PM
#1
Thread Starter
New Member
Hi.
I'm trying to write an algoritm that will subtract a two digit number representing a number of months (ie 49, representing 4 years 1 month) from a string value in format MMYY (1201 representing a date December 2001). The result should return a string value representing a date in the MMYY format.
I have a version that works but don't like the way it is written and was wondering if anybody had any ideas.
My version gets the number of months since year 1 then subtracts the two digit number of months and calculates the new date.
Any ideas appreciated. Thanks.
Sean.
-
Jan 17th, 2000, 07:40 PM
#2
Addicted Member
Hi sean.
I have posted a project @:
http://www.planet-source-code.com/vb...=5439&lngWId=1
It might be more than what you are looking for, But at least it would help.
Good Luck.
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
|