parsing date string gives NaN
You need to console log whatever you're retrieveing from the DB so you understand what format it appears in (whether there's a "T" in there, or a "Z", whether it has miliseconds etc).
Then use string methods to get a datestring that you can parse.