Date (DD/MM/YYYY HH:MM:SS)
By Developgram - April 19, 2017
<html> <body> <script> var dt = new Date(); var day = dt.getDate(); var month = dt.getMonth() + 1; //January is 0 var year = dt.getFullYear(); var hour = dt.getHours(); var minute = dt.getMinutes(); var second = dt.getSeconds(); if (month < 10) month = "0" + month; var new_date = day + "/" + month + "/" + year + " " + hour + ":" + minute + ":" + second; document.write(new_date); </script> </body> </html>
0 comments