|
-
Jul 1st, 2001, 08:37 AM
#1
Thread Starter
Member
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"
-
Jul 1st, 2001, 02:41 PM
#2
Lively Member
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? )
-
Jul 1st, 2001, 09:27 PM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|