I think the โdatesโ in your table are not date objects, they are just rows, and JavaScript evaluates them to 0, so you get the date value โoriginโ (aka epoch) minus GMT offset ... depending on how these values โโenter the cells, there may be different solutions. Can you show sample data and tell how it was created?
To check the correctness of my guess, you can just try changing the display format of the date cells using the spreadsheet interface. If you can change it there and get consistent results, then I'm wrong ... if not ... well, I think I'm right :-)
source share