Sir,
Please help, I need to show client machine datetime on label in asp.net
Hi Mehram,
Refer below code.
HTML
<script> window.onload = function() { setInterval(function(){ var dt = new Date(); document.getElementById('lblTime').innerHTML = dt; }, 500); } </script> <span id="lblTime"></span>
Demo
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.