Posts by Fábio Gianotti • 9 points
1 post
-
0
votes2
answers261
viewsA: How to validate if one date is longer than the other considering day, month and year
One possibility, without using external libraries, is to do this: // obter a data de hoje no formato yyyy-mm-dd let hoje = new Date(2021, 1 - 1, 12); // para 12/01/2021 let hojeYMD = (new…