Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js new date short format


(new Date()).toLocaleDateString(); // Local format

(new Date()).toLocaleDateString('en-US'); // "en-US" gives date in US Format - mm/dd/yy
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #date #short #format
ADD COMMENT
Topic
Name
7+7 =