Ben Walker
Posts: 0
Joined: Mon Jan 19, 2015 2:13 pm

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.

Ben Walker
Posts: 0
Joined: Mon Jan 19, 2015 2:13 pm

parsing date string gives NaN

If you retreive an object, I found best bate was to use some type of toString() method. Then once it's in a string it should be easier to manipulate.

RK
Posts: 0
Joined: Sat May 23, 2015 6:40 pm

parsing date string gives NaN

Thanks for your response.toString didn't work for me. Used json.stringify to solve it

Return to “Issues”