Writing a function that takes date values and returns the time difference in seconds : I have to create a function that takes in two date and time values and returns the time difference between them in seconds.

This is what I have so far:

`var x = getTimeDiff((2019, 07, 04, 24, 00, 00), (2019, 06, 07, 24, 11, 00));`

`console.log(x);`


`function getTimeDiff(fdate, pdate) {`
    
    var fSeconds = fdate.getTime();
    var pSeconds = pdate.getTime();
    var secondsLeft = (fSeconds - pSeconds) / 1000
    return secondsLeft;
    }


The first two lines of code are for me to test in my browser. I am confused as to how to enter dates in the parentheses so that they are recognized as dates. When I run the code my browser states that the getTime is not a function. How do I enter dates so that my function recognizes that I am entering a "new Date()"? Any help would be much appreciated!