node-google-spreadsheet
node-google-spreadsheet copied to clipboard
Single quotes being added to DATE at the beginning in spreadsheet
Hi @theoephraim ,
When Dates are added to the spreadsheet they are preceded with a ' but this should not happen. Is there any way to prevent by adding ' at the beginning of Dates?
Please refer the below screen shot for the reference:
Thanks.
I got the same issue. Any workaround?
I got the same issue. Any workaround?
Still no luck!
My ugly workaround is to use a helper column like = A1*1
rawData.getCell(min+j, 4).formula = '=F' + String(min+j+1)+'*1'
rawData.getCell(min+j, 5).value = moment().format('YYYY-MM-DD HH:mm')
=> Correct date without the ' in column E
Correction is very necessary, otherwise you have to be perverted
USER_ENTERED or RAW method if RAW, then ' - added
It's because you're setting the date as a string. See https://github.com/theoephraim/node-google-spreadsheet/issues/363#issuecomment-1437308370
combining into #630