Pages

Wednesday, 16 May 2018

Get Date Time (dd/mm/yyyy)


<script>
       var d = new Date();
       document.write(d.getDate() + '/' + (d.getMonth() + 1) + '/' + d.getFullYear());

       document.write(' Time : '+d.getHours() + ' : ' + d.getMinutes() + ' : ' + d.getSeconds());
   </script>


No comments:

Post a Comment