Thanks in advance.
If your date is string, you should initialize new Date object with your time string as parameter. getTime() is method of Date object. Note that it may not work in all browsers.
var date = new Date('2016-11-09T18:00:01'); alert(date.getTime())