Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js datetime now

 var d = Date(Date.now());
 a = d.toString()
 
  // Printing the current date                   
  document.write("The current date is: " + a)
  // The current date is: Fri Jun 22 2018 10:54:33 
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #js #datetime
ADD COMMENT
Topic
Name
3+3 =