<script type="text/javascript"> var dt = jQuery.noConflict(); dt(document).ready(function () { showTime(); showdate(); }); function showdate() { var x = new Date(); var x1 = (x.getMonth() + 1) + "/" + x.getDate() + "/" + x.getFullYear(); document.getElementById('lblct').innerHTML = x1; window.setTimeout("showdate()", 1000); } function showTime() { var d = new Date(); var hour = d.getHours() == 0 ? 12 : (d.getHours() > 12 ? d.getHours() - 12 : d.getHours()); var min = d.getMinutes() < 10 ? '0' + d.getMinutes() : d.getMinutes(); var ampm = d.getHours() < 12 ? 'AM' : 'PM'; var time = hour + ':' + min + ' ' + ampm; document.getElementById('lbldate').innerHTML = time; window.setTimeout("showTime()", 1000); } </script>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)