Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

Printing the date of a cell in the Google Apps Script console

$
0
0

I wrote in cell D1 the function "=today()", and in google apps script I'm trying to print it in this way:

function myFunction() {  const ss = SpreadsheetApp.getActive();  const ws = ss.getSheetByName("date");  const valoreCella = ws.getRange("D1").getValue();  Logger.log(valoreCella);}

The result is:

enter image description here

How can I get this format?

enter image description here


Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>