Mr.Mudassar
I have some javascript code to find the local computer date and time. because our server in US. We are in Malaysia. It picks up the US Time. Below code is display on page only. I need to store the result into mssql database table so i need to display the result in text box control.
Pls advice me.
thank you
Maideen
<script type="text/javascript">
var currentTime = new Date()
var month = currentTime.getMonth()
var day = currentTime.getDate()
var year = currentTime.getFullYear()
var hours = currentTime.getHours()
var minutes = currentTime.getMinutes()
var seconds = currentTime.getSeconds()
var miliseconds = currentTime.getMilliseconds()
if (minutes < 10) {
minutes = "0" + minutes
}
if (seconds < 10) {
seconds = "0" + seconds
}
document.write(year + "-" + month + "-" + day + " " + hours + ":" + minutes + ":" + seconds + ":" + miliseconds)
</script>