Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get moment date without time

console.log( moment().format('YYYY-MM-DD HH:mm:ss') )

console.log( moment({h:0, m:0, s:0, ms:0}).format('YYYY-MM-DD HH:mm:ss') )
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #moment #date #time
ADD COMMENT
Topic
Name
7+8 =