Below is the javscript code that I am using to get the timestamp of a particular date I got it from here
var myDate = "12-11-2021";
myDate = myDate.split("-");
var newDate = new Date(myDate[2], myDate[1] - 1, myDate[0]);
console.log(newDate.getTime());
The output is 1636655400000
and below is the python code I am using to get the timestamp I got it from the first comment and the accepted answer
datetime.strptime('2021-11-12', '%Y-%m-%d').timestamp()*1000
The outout 1636675200000.0
Why are the two timestamps different ?