In my JavaScript application I'm receiving a date in a string format, like this: `19/10/2021` (dd/mm/yyyy). I want to check if a month has passed since said date and return a true if so. I'm trying something like the following code, but it isn't working.

I'm getting some weird values when I try debugging it with console.logs and such, I'm a newbie in js so I don't know where I'm doing stuff wrong.

```
var q = new Date();
var d = q.getDate();
var m = q.getMonth() + 1; //+1 because january is 0 and etc
var y = q.getFullYear();

var today = new Date(d, m, y);

mydate = userDate; // this is the string the app is receiving

if (today - mydate > 30) {
    return true;
} else {
    return false;
}

```

Thanks in advance.