Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js get local date

var now = new Date();
console.log(now.toLocaleDateString()); // expected output: 2/26/2021 (MM/DD/YYYY)
 
PREVIOUS NEXT
Tagged: #js #local #date
ADD COMMENT
Topic
Name
7+5 =