The format of $factory_date
is invalid according to standard JavaScript and Chrome happens to be able to parse it.
For better results, stick to these Date
constructors:
new Date();
new Date(value);
new Date(dateString);
new Date(year, month [, day, hour, minute, second, millisecond]);
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date