mongo-xlsx icon indicating copy to clipboard operation
mongo-xlsx copied to clipboard

Parsing date error

Open ashish-agarwal24 opened this issue 8 years ago • 1 comments

When i am adding timestamps (createdAt and updatedAt) for converting mongo to xl data , I am getting this error "Cannot read property 'SSF' of undefined". That error is coming only when I am adding timestamps. Can someone please help me out ?

timestamps in mongo db : "updatedAt" : ISODate("2016-11-24T05:50:28.240Z") "createdAt" : ISODate("2016-11-22T16:23:46.127Z")

ashish-agarwal24 avatar Nov 28 '16 08:11 ashish-agarwal24

@ashish-agarwal24 you must be sure that what you are passing to mongo-xlsx is a Date Object, otherwise it will throw an error (that happen to me some time ago). for be sure you can do model.updatedAt = new Date(model.updatedAt)

jlberrocal avatar May 29 '17 14:05 jlberrocal