<script language="javascript">
timeA = new Date();
document.write(timeA.toLocaleTimeString()+"<br/>"); //to display time
document.write(timeA.toDateString()+"<br/>"); //to display date
document.write(timeA.toString()+"<br/>");//to display date and time both
</script>
No comments:
Post a Comment