I am creating a date from a string
var fechaStr = "28-11-2017";
var fechaDt = new Date(fechaStr);
But when creating the variable fechaDt
and using it, it throws the message:
variable dateDt undefined
In chrome it works without problems, but when using it in firefox it gives that message.