author: xum [+], Submitted: 04.15.01 9a

msg1 { alfgear [+], posted: 11.26.04 6a•-, top [^] }
Problem in function !

2000 January 1 and 2 fall on the last week of 1999 December. function should return 52 instead of 1 for these two dates. How to solve this?

Wrong :
1 27 28 29 30 31 1 2
2 3 4 5 6 7 8 9
3 10 11 12 13 14 15 16
4 17 18 19 20 21 22 23
5 24 25 26 27 28 29 30
6 31 1 2 3 4 5 6

Should be :
52 27 28 29 30 31 1 2
1 3 4 5 6 7 8 9
2 10 11 12 13 14 15 16
3 17 18 19 20 21 22 23
4 24 25 26 27 28 29 30
5 31 1 2 3 4 5 6

Thanks
msg2 { megamilam [+], posted: 07.11.07 9p•07.11.07 9p, top [^] }
This is amazing! I've been looking for this code for days. Thanks!

Can you show me the usage? I'm trying to add the week number to an image name:

i.e. image52.jpg

And I'm having a difficult time figuring out how to make it happen.

Thanks for your help

Dave Milam