Converting Google spreadsheet date into a JS Date object?

前端 未结 7 971
半阙折子戏
半阙折子戏 2020-12-01 12:49

I\'ve been going round in circles on this one... I\'ve got a spreadsheet which holds two dates, and I need to find the number of elapsed years between the two (ie. someone\'

相关标签:
7条回答
  • 2020-12-01 13:53

    You can try like this:

    return new Date(1900, 0, --excelDate)
    
    0 讨论(0)
提交回复
热议问题