i'm trying to show notifications
to users
only for today's
entered matches some date in this format 2017/11/13 15:02
from record
NOTE:2017/11/13 15:02
will always change, used for the sake of comparison
in pseudo code
if(today's date passed and dont match 2017/11/13 15:02){
//don't send notification
}else{
//send notification
}
i have tried something like this
var comparisionDate = '2017/11/13 15:02';
var todaysDate = new Date(); // current date
// further i don't know to compare
if(comparisionDate == todaysDate ){
//send notifications
}else{
// don't show notification
}