1
I have the following problem, I have a date that comes from the bank and I 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 17/05/1995 10:45
then if the dates are equal to the date coming from the bank will always be longer than the current date because of the hours, as I can match or take the hours?
Hey, buddy, you ever think about using Moment js.? Maybe I’d consider using it more.
– Wallace Maxters
Nice friend, but for this problem I would like to use pure jquery or js
– Lennon S. Bueno