Re: Date of next Thursday
Re: Date of next Thursday
- Subject: Re: Date of next Thursday
- From: Michelle Steiner <email@hidden>
- Date: Wed, 15 Nov 2000 15:42:03 -0800
On 11/15/00 3:17 PM, Nigel Garvey <email@hidden> wrote
>
set dref to date "Thursday, 6 January 2000 00:00:00"
>
set nextThursday to dref + (round (((current date) - dref) / weeks)
>
rounding up) * weeks
Wonderful! May I add a very small enhancement?
set nextThursday to date string of (dref + (round ((((current date) + 47
* days) - dref) / weeks) rounding up) * weeks)
This removes the time from the result, leaving only the date.
--Michelle
----------------------------------------------------------------------
| Michelle Steiner | Hard as it may be to believe, my |
| email@hidden | life has been based on a true story. |
----------------------------------------------------------------------