>I want to add a certain number of days to a date. Both "the date" 
>and date() returns strings which makes it quite complex to create a 
>"date calculator of Your own.


To get this date as a Date type, you want to use the systemdate, not date():

put the systemdate
-- date( 2000, 9, 13 )

and then calculate dates by using a date type, not a string:

put date(2000,9,13)+5
-- date( 2000, 9, 18 )

put date(2000,9,13)+20
-- date( 2000, 10, 3 )

[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to