0
The sample code to access the client machine date & time is as follows:
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div id="timestamp">
October 30, 2013 5:49 pm GMT
</div>
<script type="text/javascript">
var timestamp1 = document.getElementById('timestamp'),
t = new Date(timestamp1.innerHTML),
hours = t.getHours(),
min = t.getMinutes() + '',s
pm = false,
months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
if (hours > 11) {
hours = hours - 12;
pm = true;
}
if (hours == 0) hours = 12;
if (min.length == 1) min = '0' + min;
timestamp.innerHTML = months[t.getMonth()] + ' ' + t.getDate() + ', ' + t.getFullYear() + ' ' + hours + ':' + min + ' ' + (pm ? 'pm' : 'am');
</script>
</form>
</body>
</html>