Dr
Thu Oct 25 10:41:29 PDT 2007
In microsoft.public.scripting.vbscript message <1193227841.481293.154940
@v29g2000prd.googlegroups.com>, Wed, 24 Oct 2007 05:10:41, navin
<navin.narayana@gmail.com> posted:
>In a drop down box i am populating all the weeks from 1 to 52, but
>whenever the page loads, i want it show the current week number as
>selected value.
Since there are 365 or 366 days in a year, 52 weeks cannot be
sufficient.
><option selected value="<% DatePart("ww", Now()) %>">
DatePart "ww" is buggy when generating ISO standard week numbers, and
therefore untrustworthy IMHO on any other form of week numbering.
A test of every day over 400 years should suffice; or 28 years for the
short-termists.
<URL:
http://www.merlyn.demon.co.uk/vb-date2.htm> refers.
--
(c) John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v6.05 MIME.
Web <URL:
http://www.merlyn.demon.co.uk/> - FAQish topics, acronyms, & links.
Proper <= 4-line sig. separator as above, a line exactly "-- " (SonOfRFC1036)
Do not Mail News to me. Before a reply, quote with ">" or "> " (SonOfRFC1036)