What is the error in the working with date in JS?

Today: date = new Date(); works
It is necessary to transfer your date. Do this:
date = new Date(Month,Year,1); 

// so, as in the textbook http://javascript.ru/Date
date = new Date("21 May 1958 10:12")

In both cases, the error Uncaught TypeError: Date is not a constructor. Why?
Anyway, I wanted to get the day of the week arbitrarily specified date, e.g.: date.getDay(2016.05.01) - Sunday.
July 9th 19 at 13:54
3 answers
July 9th 19 at 13:56
Solution
The constructor takes arguments in the following sequence
new Date(year, month[, day[, hour[, minute[, second[, millisecond]]]]]);

If you pass a string, it should comply with this format
There is error 4 on top where day month year, should be the first 2 places to change: month day year - Clovis_Gulgowski43 commented on July 9th 19 at 13:59
July 9th 19 at 13:58
Solution
date = new Date();
console.log(Date);

function Show(dateString) {
 date2 = new Date(dateString);
console.log(Date);
}

Show("21 May 1958 10:12");

Everything works
July 9th 19 at 14:00
Apparently, someone rescheduled Date;
Date = 123;
See what lies in the Date. Must be a function.
date = new Date();
console.log(Date);

function Show(Month,Year) {
 date2 = new Date("21 May 1958 10:12");
console.log(Date);
}

The upper console.log shows 16 (today), lower anything because the error on the previous line - Clovis_Gulgowski43 commented on July 9th 19 at 14:03
Don't believe me) Come on screen)
i.imgur.com/cpnTuqH.png - Clovis_Gulgowski43 commented on July 9th 19 at 14:06

Find more questions by tags JavaScript