EASY way to add n days to a date?

J. Landman Gay jacque at hyperactivesw.com
Sat Dec 19 18:56:34 EST 2009

James Hurley wrote:
> In FileMaker it is possible to add n (an integer) to a date to get a new 
> date n days hence.
> Is there an EASY way to do this in Rev? (I don't mean setting the 
> idemdel to "/" and fussing with the day/month/year digits.)

convert tDate to dateitems
add numDays to item 3 of tDate
convert tDate to short date -- or other format

The nice thing about the convert command is that you can add any number 
of days and it will figure out the right date anyway, changing the month 
and/or year as necessary.

Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com

More information about the Use-livecode mailing list