D
D
delongeroman2020-08-19 00:05:24
Google Apps Script
delongeroman, 2020-08-19 00:05:24

How to work with date format in google sheets?

5f3c42218b3c5645384686.png
How can I add 1 day to a date with a script? For example, how can I make it from 08/18/2020 --> 08/19/2020

I want to make a selection by date through a script, but I don’t understand how to change the date, I just tried to add one, nothing happens.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Grigory Boev, 2020-08-19
@delongeroman

This is JS date
There are many options. For example:

let now = new Date();
let tomorrow = new Date(+now+24*60*60*1000);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question