Hi Aaron,
What I was trying to work out is whether the OP was just asking for the
"week of the year", or does he have some other definition for what a "work
week" is? Maybe "work week" is some kind of technical term or "term of art"
that means something that I'm unfamiliar with.
Cheers
Ken
"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:On**************@TK2MSFTNGP11.phx.gbl...
: > ...no, you don't get what I mean. What the hell is a "work week"? Is
there
: a
: > definition, or it is just something you made up? Or is it just the week
of
: > the year?
:
: Ken, there is a generic term that is included in DATEPART calculations
that
: indicates the week number of the year. For most of us, this is simply the
: number of weeks since the first week of the year, going down the calendar.
: If the year starts on a Saturday, then Jan 2nd is in week 2.
:
: In VBScript, you can see it this way:
:
: <%
: response.write DatePart("ww", date())
: %>
:
: In T-SQL:
:
: SELECT DATEPART(WEEK, CURRENT_TIMESTAMP)
:
: You will need to calculate this differently if you have a different
: definition of week in your company, e.g. using a calendar table (see
:
http://www.aspfaq.com/2519). I plan on adding such an example to that
: article in the near future.
:
: --
:
http://www.aspfaq.com/
: (Reverse address to reply.)
:
: