Reputation: 1
so, I have this google sheets from where, I need to generate some PDF, it's working fine, except the date. if I have selected the date as 29/12/2021 in my sheet, it appears as 28/12/2021 in the generated PDF. I don't what went wrong, I have tried changing the locale and time zone. but nothing came out as well. what's exactly the problem? and I wanted to know that, is there any way I can change this using apps-script?
Upvotes: 0
Views: 72
Reputation: 15318
The best and simpliest way is to use .getDisplayValue()
instead of .getValue()
Upvotes: 1