2
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 idea how to do that?
the start date variable is of type String or Date type ?
– Marcelo Junior