Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

date format date and time in js

var options = {
      year: "numeric",
      month: "numeric",
      day: "numeric",
      hour: "numeric",
      minute: "numeric",
    };
console.log(date.toLocaleDateString("en-US", options));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #date #format #date #time #js
ADD COMMENT
Topic
Name
2+6 =