Q:

Invalid Date Issue but Date is Invalid

I have a date format 

03.03.2016 20:01

And I have a code
aData._date = new Date(aData[3]).getTime();

error is that date is invalid but, at different computer it worked well but now it is not working .What is the problem?
Thanks in advance

A:

What is the problem?

Parsing of strings using the Date constructor (or Date.parse, they are equivalent for parsing) is largely implementation dependent and is not recommended. Manually parse strings, either with a small function if you only have to deal with a single format, or use a library (there are many good ones to choose from) and provide the format otherwise.
ECMAScript 2015 specifies that Date.parse correctly parse ISO 8601 extended format dates, however any other format is implementation dependent. Many browsers in use do not correctly (i.e. per the specification) parse ISO 8601 format dates either.
"03.03.2016 20:01" is not an ISO 8601 date format. Assuming it's DD.MM.YYYY hh:mm it can be parsed as a local date and time using:

function parseDMYHM(s){
  var b = ('' || s).split(/\D/);
  return new Date(b[2], b[1]-1, b[0], b[3], b[4]);
}

document.write(parseDMYHM('03.03.2016 20:01'));

Or if you have a library with a parse function that accepts a format to parse (as such libraries that are any good will), using something like:
var d = parse('03.03.2016 20:01', 'DD.MM.YYYY hh:mm');

