Results 1 to 2 of 2

Thread: Date subtraction

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 1999
    Location
    Dublin,Ireland
    Posts
    9

    Post

    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.

  2. #2
    Addicted Member
    Join Date
    Jul 1999
    Location
    Portland, OR.
    Posts
    226

    Post

    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
  •  



Click Here to Expand Forum to Full Width