A challenge: adding months to a date?

Ken Ray kray at sonsothunder.com
Sun May 13 13:38:07 EDT 2007


On Sun, 13 May 2007 16:19:14 +0100, David Bovill wrote:

> I thought this worked fine, but if the startdate is lets say January 31 -
> well adding a month basically goes to Feb 31st which converts to March... so
> you need to do something else.... but what???

What would help would be what you expect to get as a result. Should the 
above conversion return the last day in February? So on a non-leap-year 
anything with a startdate of January 29, 30, or 31 should return 
February 28 when you add a month? Please clarify...


Ken Ray
Sons of Thunder Software, Inc.
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/



More information about the use-livecode mailing list