Getting WorkWeek Values?

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default Getting WorkWeek Values?

    I can easily get the current date by using Date(), how about WorkWeek?

    Mark


    M P Guest

  2. Similar Questions and Discussions

    1. read row values from datagrid and populate in new datagrid values from connected
      Hello, i am new in asp.net and i am having a question: I am having a datagrid_1 in which i am showing the context of PatientDetails table....
    2. ASP getting values
      Hi, Lets say I connected to an Access database and created an sql and then created a drop down list. <% strSQL = "SELECT...
    3. how to get URL values into swf - pls help me
      <PARAM NAME="movie" VALUE="Game.swf?action="<%Response.Write(sAction);%>" <PARAM NAME="quality" VALUE="high"> <PARAM NAME="bgcolor" VALUE="#FFFFFF"...
    4. Why don?t the location values in the Sprite Overlay agree with the values
      I would expect the left,top,right bottom values for a sprite that appear underneath it on the stage when you click on it to agree with the l,t,r,b...
    5. Adding custom values and database values to DropDwonList
      The other way is to create a DataTable, put the --None-- as the first Row, then read the datareader into the DataTable, and append the --other-- at...
  3. #2

    Default Re: Getting WorkWeek Values?

    What is a "work week"?

    Cheers
    Ken


    "M P" <mark@textguru.ph> wrote in message
    news:uVMDmoxYEHA.3988@tk2msftngp13.phx.gbl...
    : I can easily get the current date by using Date(), how about WorkWeek?
    :
    : Mark
    :
    :


    Ken Schaefer Guest

  4. #3

    Default Re: Getting WorkWeek Values?

    workweek calendar. Like 2004, we have 53 work weeks.


    "Ken Schaefer" <kenREMOVE@THISadOpenStatic.com> wrote in message
    news:#TJx12xYEHA.992@TK2MSFTNGP10.phx.gbl...
    > What is a "work week"?
    >
    > Cheers
    > Ken
    >
    >
    > "M P" <mark@textguru.ph> wrote in message
    > news:uVMDmoxYEHA.3988@tk2msftngp13.phx.gbl...
    > : I can easily get the current date by using Date(), how about WorkWeek?
    > :
    > : Mark
    > :
    > :
    >
    >

    M P Guest

  5. #4

    Default Re: Getting WorkWeek Values?

    What is the difference between a "work week", and a "week"?
    What about partial weeks? (eg if 1st January 2004 is a Thursday?)

    Cheers
    Ken


    "M P" <mark@textguru.ph> wrote in message
    news:%23i7lG7xYEHA.3128@TK2MSFTNGP09.phx.gbl...
    : workweek calendar. Like 2004, we have 53 work weeks.
    :
    :
    : "Ken Schaefer" <kenREMOVE@THISadOpenStatic.com> wrote in message
    : news:#TJx12xYEHA.992@TK2MSFTNGP10.phx.gbl...
    : > What is a "work week"?
    : >
    : > Cheers
    : > Ken
    : >
    : >
    : > "M P" <mark@textguru.ph> wrote in message
    : > news:uVMDmoxYEHA.3988@tk2msftngp13.phx.gbl...
    : > : I can easily get the current date by using Date(), how about WorkWeek?
    : > :
    : > : Mark
    : > :
    : > :
    : >
    : >
    :
    :


    Ken Schaefer Guest

  6. #5

    Default Re: Getting WorkWeek Values?

    You don't get what I mean.
    Ex. Today is 06-Jul-2004 under WorkWeek 28, for next week its Work Week 29,
    and so on...

    What I mean with workweek is the work week calendar.
    "Ken Schaefer" <kenREMOVE@THISadOpenStatic.com> wrote in message
    news:eGaG7MyYEHA.644@tk2msftngp13.phx.gbl...
    > What is the difference between a "work week", and a "week"?
    > What about partial weeks? (eg if 1st January 2004 is a Thursday?)
    >
    > Cheers
    > Ken
    >
    >
    > "M P" <mark@textguru.ph> wrote in message
    > news:%23i7lG7xYEHA.3128@TK2MSFTNGP09.phx.gbl...
    > : workweek calendar. Like 2004, we have 53 work weeks.
    > :
    > :
    > : "Ken Schaefer" <kenREMOVE@THISadOpenStatic.com> wrote in message
    > : news:#TJx12xYEHA.992@TK2MSFTNGP10.phx.gbl...
    > : > What is a "work week"?
    > : >
    > : > Cheers
    > : > Ken
    > : >
    > : >
    > : > "M P" <mark@textguru.ph> wrote in message
    > : > news:uVMDmoxYEHA.3988@tk2msftngp13.phx.gbl...
    > : > : I can easily get the current date by using Date(), how about
    WorkWeek?
    > : > :
    > : > : Mark
    > : > :
    > : > :
    > : >
    > : >
    > :
    > :
    >
    >

    M P Guest

  7. #6

    Default Re: Getting WorkWeek Values?

    "M P" <mark@textguru.ph> wrote in message
    news:Oo7PE4yYEHA.1656@TK2MSFTNGP09.phx.gbl...
    > You don't get what I mean.
    > Ex. Today is 06-Jul-2004 under WorkWeek 28, for next week its Work Week
    29,
    > and so on...
    Enter this in the IE Address line and press Enter:

    vbscript:DatePart("ww",Date())

    vbscript:DatePart("ww",#12/31/2004#)


    McKirahan Guest

  8. #7

    Default Re: Getting WorkWeek Values?

    "McKirahan" <News@McKirahan.com> wrote in message news:<6evGc.31193$a24.28857@attbi_s03>...
    > "M P" <mark@textguru.ph> wrote in message
    > news:Oo7PE4yYEHA.1656@TK2MSFTNGP09.phx.gbl...
    > > You don't get what I mean.
    > > Ex. Today is 06-Jul-2004 under WorkWeek 28, for next week its Work Week
    > 29,
    > > and so on...
    >
    > Enter this in the IE Address line and press Enter:
    >
    > vbscript:DatePart("ww",Date())
    >
    > vbscript:DatePart("ww",#12/31/2004#)
    Holy cow. never knew ie would do that.
    Larry Bud Guest

  9. #8

    Default Re: Getting WorkWeek Values?

    Larry Bud wrote:
    >>
    >> Enter this in the IE Address line and press Enter:
    >>
    >> vbscript:DatePart("ww",Date())
    >>
    >> vbscript:DatePart("ww",#12/31/2004#)
    >
    > Holy cow. never knew ie would do that.
    VBScript or scripting from the location bar? By my observation, all
    script-enabled browsers allow some amount of location bar scripting. I
    noticed something rather interesting, though:

    --- FireFox 0.9.1 and Mozilla 1.7 ---
    javascript:alert(123) Success
    jscript:alert(123) Nothing
    ecmascript:alert(123) Nothing
    vbscript:alert(123) Redirect to [url]http://www.vbscript.com/home/[/url]

    --- IE6 ---
    javascript:alert(123) Success
    jscript:alert(123) Location changes to vbscript:alert(123)
    ecmascript:alert(123) Location changes to javascript:alert(123)
    vbscript:alert(123) Success

    --- Opera 7.23 ---
    javascript:alert(123) Success
    jscript:alert(123) Error: Unsupported
    ecmascript:alert(123) Error: Unsupported
    vbscript:alert(123) Error: Unsupported

    Why on Earth would jscript: change to vbscript: ?



    --
    Dave Anderson

    Unsolicited commercial email will be read at a cost of $500 per message. Use
    of this email address implies consent to these terms. Please do not contact
    me directly or ask me to contact you directly for assistance. If your
    question is worth asking, it's worth posting.


    Dave Anderson Guest

  10. #9

    Default Re: Getting WorkWeek Values?

    Thanks McKirahan!

    "McKirahan" <News@McKirahan.com> wrote in message
    news:6evGc.31193$a24.28857@attbi_s03...
    > "M P" <mark@textguru.ph> wrote in message
    > news:Oo7PE4yYEHA.1656@TK2MSFTNGP09.phx.gbl...
    > > You don't get what I mean.
    > > Ex. Today is 06-Jul-2004 under WorkWeek 28, for next week its Work Week
    > 29,
    > > and so on...
    >
    > Enter this in the IE Address line and press Enter:
    >
    > vbscript:DatePart("ww",Date())
    >
    > vbscript:DatePart("ww",#12/31/2004#)
    >
    >

    M P Guest

  11. #10

    Default Re: Getting WorkWeek Values?

    ....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? And if it's just the week of the year, how do you classify partial
    weeks?

    Cheers
    Ken


    "M P" <mark@textguru.ph> wrote in message
    news:Oo7PE4yYEHA.1656@TK2MSFTNGP09.phx.gbl...
    : You don't get what I mean.
    : Ex. Today is 06-Jul-2004 under WorkWeek 28, for next week its Work Week
    29,
    : and so on...
    :
    : What I mean with workweek is the work week calendar.
    : "Ken Schaefer" <kenREMOVE@THISadOpenStatic.com> wrote in message
    : news:eGaG7MyYEHA.644@tk2msftngp13.phx.gbl...
    : > What is the difference between a "work week", and a "week"?
    : > What about partial weeks? (eg if 1st January 2004 is a Thursday?)
    : >
    : > Cheers
    : > Ken
    : >
    : >
    : > "M P" <mark@textguru.ph> wrote in message
    : > news:%23i7lG7xYEHA.3128@TK2MSFTNGP09.phx.gbl...
    : > : workweek calendar. Like 2004, we have 53 work weeks.
    : > :
    : > :
    : > : "Ken Schaefer" <kenREMOVE@THISadOpenStatic.com> wrote in message
    : > : news:#TJx12xYEHA.992@TK2MSFTNGP10.phx.gbl...
    : > : > What is a "work week"?
    : > : >
    : > : > Cheers
    : > : > Ken
    : > : >
    : > : >
    : > : > "M P" <mark@textguru.ph> wrote in message
    : > : > news:uVMDmoxYEHA.3988@tk2msftngp13.phx.gbl...
    : > : > : I can easily get the current date by using Date(), how about
    : WorkWeek?
    : > : > :
    : > : > : Mark
    : > : > :
    : > : > :
    : > : >
    : > : >
    : > :
    : > :
    : >
    : >
    :
    :


    Ken Schaefer Guest

  12. #11

    Default Re: Getting WorkWeek Values?

    > ...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
    [url]http://www.aspfaq.com/2519[/url]). I plan on adding such an example to that
    article in the near future.

    --
    [url]http://www.aspfaq.com/[/url]
    (Reverse address to reply.)


    Aaron [SQL Server MVP] Guest

  13. #12

    Default Re: Getting WorkWeek Values?

    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]" <ten.xoc@dnartreb.noraa> wrote in message
    news:OnYtxiDZEHA.2840@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
    : [url]http://www.aspfaq.com/2519[/url]). I plan on adding such an example to that
    : article in the near future.
    :
    : --
    : [url]http://www.aspfaq.com/[/url]
    : (Reverse address to reply.)
    :
    :


    Ken Schaefer Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139