• 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
Date question with weeknumber
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Date question with weeknumber


  • Subject: Date question with weeknumber
  • From: Bert Groeneveld <email@hidden>
  • Date: Fri, 23 Apr 2010 10:38:01 +0200

Hello,

At some point in my script I know a weeknumber, for example set myWeeknumber to "03", or set myWeeknumber to "52" (can be any weeknumber in the future).
I want to find ou the date of the wednesday that falls in the week with weeknumber myWeeknumber (this will be my startDate).
And I want to find out the date of the tuesday that falls in the week after the week with weeknumber myWeeknumber (this will be my endDate).


The format of the startDate end endDate should be "23-04-2010" (23th of april of 2010).

myWeeknumber is always a weeknumber in the future so when today falls in week 52 of a given (this) year and myWeeknumber is set to "2" or "02" then the startDate end the endDate fall in the next year of course.

I was wondering if this can be done with Applescript and if yes, anyone would be so kind to post example code.

Thanks for any help,
Bert.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: Date question with weeknumber
      • From: email@hidden
    • Re: Date question with weeknumber
      • From: "Mark J. Reed" <email@hidden>
    • Re: Date question with weeknumber
      • From: Martin Michel <email@hidden>
    • Re: Date question with weeknumber
      • From: Stan Cleveland <email@hidden>
  • Prev by Date: Re: Waiting for a web page to be fully loaded
  • Next by Date: Re: Date question with weeknumber
  • Previous by thread: Re: Adobe InDesign CS3 JPEG export range problem
  • Next by thread: Re: Date question with weeknumber
  • Index(es):
    • Date
    • Thread