Getting Day of Week

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • James

    Getting Day of Week

    Is there a built in ASP function for getting the day of the week?
    Ultimately I'm trying to come up with the output:

    Thursday, September 23, 2004.


  • Aaron [SQL Server MVP]

    #2
    Re: Getting Day of Week

    There are no such functions in ASP, since ASP is not a language. Are you
    using VBScript? Have you looked at VBScript's DATEPART() and DATENAME()
    functions?

    --
    Please contact this domain's administrator as their DNS Made Easy services have expired.

    (Reverse address to reply.)




    "James" <cppjames@aol.c om> wrote in message
    news:OMls#wXoEH A.4004@TK2MSFTN GP10.phx.gbl...[color=blue]
    > Is there a built in ASP function for getting the day of the week?
    > Ultimately I'm trying to come up with the output:
    >
    > Thursday, September 23, 2004.
    >
    >[/color]


    Comment

    • Aaron [SQL Server MVP]

      #3
      Re: Getting Day of Week

      There are no such functions in ASP, since ASP is not a language. Are you
      using VBScript? Have you looked at VBScript's DATEPART() and DATENAME()
      functions?

      --
      Please contact this domain's administrator as their DNS Made Easy services have expired.

      (Reverse address to reply.)




      "James" <cppjames@aol.c om> wrote in message
      news:OMls#wXoEH A.4004@TK2MSFTN GP10.phx.gbl...[color=blue]
      > Is there a built in ASP function for getting the day of the week?
      > Ultimately I'm trying to come up with the output:
      >
      > Thursday, September 23, 2004.
      >
      >[/color]


      Comment

      • James

        #4
        Re: Getting Day of Week

        Yup, sure am using VBScript. Sorry for asking for a function in ASP...what
        a fool I've made of myself. Anyway, I've been able to create a solution
        using DatePart, but it seems far longer than it needs to be. Never heard of
        the DateName() function in VBScript, only in SQL...but I'll look into that.


        "Aaron [SQL Server MVP]" <ten.xoc@dnartr eb.noraa> wrote in message
        news:%234a7e2Xo EHA.800@TK2MSFT NGP14.phx.gbl.. .[color=blue]
        > There are no such functions in ASP, since ASP is not a language. Are you
        > using VBScript? Have you looked at VBScript's DATEPART() and DATENAME()
        > functions?
        >
        > --
        > http://www.aspfaq.com/
        > (Reverse address to reply.)
        >
        >
        >
        >
        > "James" <cppjames@aol.c om> wrote in message
        > news:OMls#wXoEH A.4004@TK2MSFTN GP10.phx.gbl...[color=green]
        > > Is there a built in ASP function for getting the day of the week?
        > > Ultimately I'm trying to come up with the output:
        > >
        > > Thursday, September 23, 2004.
        > >
        > >[/color]
        >
        >[/color]


        Comment

        • Aaron [SQL Server MVP]

          #5
          Re: Getting Day of Week

          Sorry, my bad. Look at the WeekdayName() and Weekday() functions.

          --
          Please contact this domain's administrator as their DNS Made Easy services have expired.

          (Reverse address to reply.)




          "James" <cppjames@aol.c om> wrote in message
          news:uTyFB7XoEH A.2684@TK2MSFTN GP11.phx.gbl...[color=blue]
          > Yup, sure am using VBScript. Sorry for asking for a function in[/color]
          ASP...what[color=blue]
          > a fool I've made of myself. Anyway, I've been able to create a solution
          > using DatePart, but it seems far longer than it needs to be. Never heard[/color]
          of[color=blue]
          > the DateName() function in VBScript, only in SQL...but I'll look into[/color]
          that.[color=blue]
          >
          >
          > "Aaron [SQL Server MVP]" <ten.xoc@dnartr eb.noraa> wrote in message
          > news:%234a7e2Xo EHA.800@TK2MSFT NGP14.phx.gbl.. .[color=green]
          > > There are no such functions in ASP, since ASP is not a language. Are[/color][/color]
          you[color=blue][color=green]
          > > using VBScript? Have you looked at VBScript's DATEPART() and DATENAME()
          > > functions?
          > >
          > > --
          > > http://www.aspfaq.com/
          > > (Reverse address to reply.)
          > >
          > >
          > >
          > >
          > > "James" <cppjames@aol.c om> wrote in message
          > > news:OMls#wXoEH A.4004@TK2MSFTN GP10.phx.gbl...[color=darkred]
          > > > Is there a built in ASP function for getting the day of the week?
          > > > Ultimately I'm trying to come up with the output:
          > > >
          > > > Thursday, September 23, 2004.
          > > >
          > > >[/color]
          > >
          > >[/color]
          >
          >[/color]


          Comment

          Working...