Post Reply 
Year(s) Month(s) Day(s) between 2 dates
10-28-2015, 10:03 AM (This post was last modified: 10-28-2015 10:04 AM by fhub.)
Post: #30
RE: Year(s) Month(s) Day(s) between 2 dates
(10-28-2015 01:57 AM)Didier Lachieze Wrote:  Franz, steps 9 and 34 should be X[>=]0? not X=0?
Ahhh, now everything is clear - many thanks Didier!

The problem was that I just did a copy&paste of the listings to a text file, and this changed the non-ASCII character ≥ to =, so this line in _my_ text looked like this:
09 x=0? ; d2 = d1?

Since I've always (4-times!) compared my entered program with this text file (and not directly with the listing here), of course I couldn't find any difference.

PS: there's still the problem in your programs when the 1st day is e.g. 30 or 31, and the 2nd month is 3, 5, 7, 10 or 12 (with d2<d1) - examples:
from 30.012015 to 5.032018 --> Domain Error
or
from 31.012015 to 5.072018 --> Domain Error
etc.

Thanks again,
Franz
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Year(s) Month(s) Day(s) between 2 dates - fhub - 10-28-2015 10:03 AM



User(s) browsing this thread: 13 Guest(s)