Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

vue compare two dates

// Use Moment Library
moment('2010-10-20').isBefore('2010-10-21'); // true
// OR
var date1 = moment(dateEntered).format("dd-mm-yyyy");
var date2 = moment(currentDate).format("dd-mm-yyyy");
moment(date1).isBefore(date2);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #vue #compare #dates
ADD COMMENT
Topic
Name
9+9 =