I have the following problem, I have a date that comes from the database and compare with the current date, and I do the following:
var dataAtual = new Date();
var partesData = dataAtual.split("/");
var dataAtualNova = new Date(partesData[2], partesData[1] - 1, partesData[0]);
var dataassinado = new Date({vem do banco});
if(dataAtualNova < dataassinado){ //faça algo }
But the current date is for example 17/05/1995
and date coming from the bank comes 17/05/1995 10:45
so if the dates are equal the date that comes from the bank will always be greater than the current date because of the hours, how can I match or take the time?