date and time

Discussion in 'ASP General' started by abcd, Jun 28, 2005.

  1. abcd

    abcd Guest

    How can I get date and time on the server. I want to log the date and time
    on the server when the ASP page is accessed.

    thanks
     
    abcd, Jun 28, 2005
    #1
    1. Advertising

  2. abcd wrote:
    > How can I get date and time on the server. I want to log the date and
    > time on the server when the ASP page is accessed.
    >
    > thanks

    Use the vbscript Now function:
    <%
    response.write Now
    %>

    Bob Barrows
    --
    Microsoft MVP -- ASP/ASP.NET
    Please reply to the newsgroup. The email account listed in my From
    header is my spam trap, so I don't check it very often. You will get a
    quicker response by posting to the newsgroup.
     
    Bob Barrows [MVP], Jun 28, 2005
    #2
    1. Advertising

  3. abcd

    abcd Guest

    wonderful...that was easy...thanks
    cheers !

    Bob Barrows [MVP] wrote:
    > abcd wrote:
    >> How can I get date and time on the server. I want to log the date and
    >> time on the server when the ASP page is accessed.
    >>
    >> thanks

    > Use the vbscript Now function:
    > <%
    > response.write Now
    > %>
    >
    > Bob Barrows
     
    abcd, Jun 28, 2005
    #3
  4. abcd

    PJones Guest

    PJones, Jun 29, 2005
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Matt
    Replies:
    1
    Views:
    645
    Matthew Speed
    Nov 8, 2003
  2. Chris Berg
    Replies:
    0
    Views:
    844
    Chris Berg
    Oct 27, 2003
  3. Peter Grison

    Date, date date date....

    Peter Grison, May 28, 2004, in forum: Java
    Replies:
    10
    Views:
    3,361
    Michael Borgwardt
    May 30, 2004
  4. Keith Cochrane
    Replies:
    2
    Views:
    648
    Keith Cochrane
    Aug 6, 2006
  5. Summu82
    Replies:
    5
    Views:
    899
    Richard Heathfield
    Jun 7, 2006
Loading...

Share This Page