mongo-xlsx
mongo-xlsx copied to clipboard
Parsing date error
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 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)