Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

datetime to date moment

//date time to date momentjs
var support_date = new Date("2021-10-23 00:00:00");
support_date = moment(support_date).format("YYYY-MM-DD");

//output:"2021-10-23"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #datetime #date #moment
ADD COMMENT
Topic
Name
6+1 =