Mr Fritzinger,
20010526 is my 30th birthday.
To solve your problem, use 'date objects'. Check out date() in the
online help. If I insert your dates in the example from the Help
myBirthDay = date(20010415)
yourBirthDay = date(20010526)
put "There are" && abs(yourBirthday - myBirthday)/ 7 && "weeks
between our birthdays."
I get
-- "There are 5 weeks between our birthdays."
-Andreas
>Greetings,
>Part of a project I'm working on has two editable field members for
>the user to enter dates into. The first is for a start date, and
>the second, an end date. The date format looks like this: <Start
>Date> "04/18/2001", <End Date> "05/24/2001". I've written a custom
>handler that will take the start date and round it back to the
>previous Sunday, and will set the end date to the following
>Saturday. So after I run my handler, the dates above get changed
>to: <Start Date> "04/15/2001", <End Date> "05/26/2001". This way we
>can deal with entire weeks for planning promotional events. My
>questions is: After I run my handler, how can I determine the number
>of weeks for any event? I've tried subtracting the start date from
>the end date, but I rarely end up with whole weeks, yet on the
>calendar, it's an even six weeks. Can anyone suggest a more
>intelligent approach?
>
>Thanx in advance,
>g fritzinger
>
>
>[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!]
[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!]