Skip to content

Instantly share code, notes, and snippets.

View neufeldtech's full-sized avatar

Jordan Neufeld neufeldtech

View GitHub Profile
function onOpen() {
var ui = SpreadsheetApp.getUi();
// Or DocumentApp or FormApp.
ui.createMenu('Extra Format')
.addItem('Horizontal', 'formatHorizontal')
.addItem('Vertical', 'formatVertical')
.addToUi();
}
function formatHorizontal() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
@neufeldtech
neufeldtech / ExcelToJsDate.js
Last active September 11, 2015 03:42 — forked from christopherscott/ExcelToJsDate.js
Convert Excel date values to JavaScript date objects
// Convert Excel dates into JS date objects
//
// @param excelDate {Number}
// @return {Date}
function getJsDateFromExcel(excelDate) {
// JavaScript dates can be constructed by passing milliseconds
// since the Unix epoch (January 1, 1970) example: new Date(12312512312);