time in and time out

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bazubwabo
    New Member
    • Nov 2006
    • 14

    time in and time out

    Dear friends,
    I’m currently working on a project for my first internship. However, I would like to create 2 different times with which I can easily differentiate a time in and a timeout for an employee.
    For that I’ve tried to make a simple code by using asp date/time, there is below what I’ve done as date/time code:
    Response.write "</td><td>"
    Response.write result("TimeIn" )
    Response.write (Now)

    Response.write "</td><td>"

    Response.write result("TimeOut ")
    Response.write (Now)
    Response.write "</td><td>"
    By running, I’ve got the same time .Could please help me to find out exactly the needed code for this function.
    Best regards;
    Bazubwabo J.B.
    IT student
  • Dimas
    New Member
    • Dec 2006
    • 2

    #2
    Let me see if I understand correctly, you want to have two different times ?
    What is the result (function?) ?
    "Response.w rite (now)" will write the current time, you're writing it twice - maybe that's what you're seeing ?

    Comment

    • AricC
      Recognized Expert Top Contributor
      • Oct 2006
      • 1885

      #3
      You going to need to save the time in somewhere then the timeout somewhere. Have it save the time in time out with a DB.

      Comment

      • karthi84
        Contributor
        • Dec 2006
        • 270

        #4
        hi,
        can you tell the reason to using this for calculating the time in and out, because based on the requirement only you can apply a logic to get two different time. for example when you want to get the time to be displayed, i.e., how u identify the in time and the out time.

        after replying to this form post me a private message so that i can identify that you have replied it. as i cant view every time your form.

        Comment

        Working...