I'm in trouble with a little comparison of dates, I need to compare two dates in the format "2018-10-05" to be able to call a function or do calculations, I was reading and I'm really complicating my life, someone could give me Help? I read them thank you very much
function CompararFechas(fechaVencimiento,fechaPago){
var fechaVencimiento = fechaVencimiento;
var fechaPago = fechaPago;
if (){
} else if (){
}
}