have problem for format date in JavaScript, this is my function code
//originalDate = \'2016-03-02 09:12:14.989522\'; var d = new Date(originalDate),
Is the date parameter in your code a Date object? That won't work. There is no such constructor in Javascript. You could use date.now() though.
date
Date
date.now()
Check here for the valid constructors for Date https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Date