I need to get the current system date. I use Angular 2.
I tried the following validation, but without success.
var now = new Date;
if(dataInicial > now.getFullYear() + now.getMonth() + now.getDate()){
alert("Data inicial maior que a final!");
}
Any ideas how to do this?