var birthday = new Date('August 19, 1975 23:15:30');
var day1 = birthday.getDay();
// Sunday - Saturday : 0 - 6

console.log(day1);
// expected output: 2