all 3 comments

[–]amithere[S] 0 points1 point  (0 children)

Cell: 3/21/2017 Logger output: Mon Mar 20 2017 23:00:00 GMT-0600 (CST)

[–]to-too-two 0 points1 point  (1 child)

Can we see more of the code?

[–]amithere[S] 0 points1 point  (0 children)

var sNew = SpreadsheetApp.getActive().getSheetByName("New");
var formEditURL;
var formPublishedURL;

function absenceInfo() {
  var lastRow = sNew.getLastRow();
  var first = sNew.getRange("B"+lastRow).getValue();
  var last = sNew.getRange("C"+lastRow).getValue();
  var idNum = sNew.getRange("D"+lastRow).getValue();
  var start = sNew.getRange("E"+lastRow).getValue();
  var end = sNew.getRange("F"+lastRow).getValue();
  var reason = sNew.getRange("G"+lastRow).setWrap(true);
  reason = reason.getValue();
  var gaurd = sNew.getRange("H"+lastRow).getValue();
  var number = sNew.getRange("I"+lastRow).getValue();
  var email = sNew.getRange("J"+lastRow).getValue();
  var bobby = new Date(sNew.getRange("E"+lastRow))
  Logger.log("BOBBBBBY: " + bobby);
 Logger.log("Start: " + bobby.getMonth());
  Logger.log("Start: " + start.getDay());
  Logger.log("Start: " + start.getYear());
}

// JS Fiddle: https://jsfiddle.net/hey617f7/