Answers for "display time in app script"

0

display time in app script

function myFunction() {
  var d = new Date();
  var timeStamp = d.getTime();  // Number of ms since Jan 1, 1970

  // OR:

  var currentTime = d.toLocaleTimeString(); // "12:35 PM", for instance
}
Posted by: Guest on March-25-2021

Browse Popular Code Answers by Language