• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Date of next Thursday
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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. |
----------------------------------------------------------------------


  • Prev by Date: Re: Date of next Thursday
  • Next by Date: Re: Date / hour control panel ?
  • Previous by thread: Re: Date of next Thursday
  • Next by thread: Re: Date of next Thursday
  • Index(es):
    • Date
    • Thread