Results 1 to 3 of 3

Thread: How do I determine which month a week belongs to ?

  1. #1

    Thread Starter
    Member shamloo's Avatar
    Join Date
    Oct 2000
    Location
    Stockholm, Sweden
    Posts
    32

    Question How do I determine which month a week belongs to ?

    Can I determine which month a week belongs to ?
    of course it's possible, but I would like to know how
    say that I would like to know in which month week 44 is in, how do I get the correct month ?

    Im going to have almost every week of a year and since this will be a script that runs for many years I can not use a mathematical solution, or can I ?

    thanks,
    David
    "There are no must's in life unless you provide for someone else than yourself"

  2. #2
    Lively Member
    Join Date
    Mar 2001
    Location
    Sweden
    Posts
    115
    Såvitt jag vet så är det nog bara vi sjuka skandinaver som använder veckonummer, så det finns nog ingen inbyggd funktion för det. Man kan heller inte använda sambandet att det går 4 veckor på en månad, eftersom det inte riktigt stämmer. Men...
    44 * 7 = dagnumret. Där igenom kan du se få reda på vilken månad det är. Kanske aningen omständigt, men det är det bästa jag kan komma på nu

    (And all you others are probably pissed 'cause I wrote this in Swedish, am I right? )

  3. #3
    Matthew Gates
    Guest
    Take a look at this thread. The CJulian2Date function is what I believe you are looking for.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width