Posts by Jadson Firmo • 1 point
1 post
-
0
votes3
answers26625
viewsA: Simple comparison between dates
Using the Moment library we can make a comparison this way: let date1 = moment(date_1, "DD/MM/YYYY").format("YYYYMMDD"); let date2 = moment(date_2, "DD/MM/YYYY").format("YYYYMMDD"); if (date2 >…
javascriptanswered Jadson Firmo 1