Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

return a date time object in yyyy-mm-dd hr:min:sec

const str = (new Date()).toISOString().slice(0, 19).replace(/-/g, "/").replace("T", " ");
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #return #date #time #object
ADD COMMENT
Topic
Name
8+2 =