on mouseUp ask "What date?" convert it to dateItems put it into yearStart put "1,1" into item 2 to 3 of yearStart convert yearStart to dateItems put (item 7 yearStart-1)* 86400 into dayDif convert yearStart to seconds convert it to seconds answer "Week"&&(it-yearStart+dayDif)/86400 div 7 +1&&"of the year." end mouseUp
michael yves COPPE of [EMAIL PROTECTED] wrote the following on 4/13/02 3:12 PM > Hi, > > I'd like something not so difficult (I hope so) : > > How to calculate the week number of a date > So, we are today 04/13/2002 (13/04/2002 in Europe). > We are week number 15 > I'd like a script which calculates this number : "15" for a given date (today) > > Thanks. _______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
