Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. displaying time

displaying time

Scheduled Pinned Locked Moved ASP.NET
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bhattiprolu
    wrote on last edited by
    #1

    Hi all, in my application i have two buttons accept and hangup and a label... if i click accept button and afterwards i will click the hangup button... in the label i want to display the time taken to click the hangup button and i want to display the time continuously (some tghing like progress)in that label.

    T 1 Reply Last reply
    0
    • B bhattiprolu

      Hi all, in my application i have two buttons accept and hangup and a label... if i click accept button and afterwards i will click the hangup button... in the label i want to display the time taken to click the hangup button and i want to display the time continuously (some tghing like progress)in that label.

      T Offline
      T Offline
      talasila80
      wrote on last edited by
      #2

      See if this helps, In this page javascript displays a real time clock updated by seconds, I guess this is not exactly what you are looking for but this may help. JavaScript Realtime Clock var tick; function stop() { clearTimeout(tick); } function usnotime() { var ut=new Date(); var h,m,s; var time=" "; h=ut.getHours(); m=ut.getMinutes(); s=ut.getSeconds(); if(s<=9) s="0"+s; if(m<=9) m="0"+m; if(h<=9) h="0"+h; time+=h+":"+m+":"+s + " UTC"; document.rclock.rtime.value=time; tick=setTimeout("usnotime()",1000); } //-->

      TIME SERVICE DEPARTMENT
      U.S. Naval Observatory, Washington, DC

      Current time from your system clock:

      B 1 Reply Last reply
      0
      • T talasila80

        See if this helps, In this page javascript displays a real time clock updated by seconds, I guess this is not exactly what you are looking for but this may help. JavaScript Realtime Clock var tick; function stop() { clearTimeout(tick); } function usnotime() { var ut=new Date(); var h,m,s; var time=" "; h=ut.getHours(); m=ut.getMinutes(); s=ut.getSeconds(); if(s<=9) s="0"+s; if(m<=9) m="0"+m; if(h<=9) h="0"+h; time+=h+":"+m+":"+s + " UTC"; document.rclock.rtime.value=time; tick=setTimeout("usnotime()",1000); } //-->

        TIME SERVICE DEPARTMENT
        U.S. Naval Observatory, Washington, DC

        Current time from your system clock:

        B Offline
        B Offline
        bhattiprolu
        wrote on last edited by
        #3

        hi thanks for the effort....... i am developing Windows application and i am writing the code in VB.Net

        G 1 Reply Last reply
        0
        • B bhattiprolu

          hi thanks for the effort....... i am developing Windows application and i am writing the code in VB.Net

          G Offline
          G Offline
          Guffa
          wrote on last edited by
          #4

          Then you are asking in the wrong forum. The ASP.NET forum handles ASP.NET applications, not Windows applications. Use the VB forum.

          --- single minded; short sighted; long gone;

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups