Skip to content

Instantly share code, notes, and snippets.

@pbaruns
Created January 5, 2020 12:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pbaruns/eeeb75584979d047e1638666010e9c50 to your computer and use it in GitHub Desktop.
Save pbaruns/eeeb75584979d047e1638666010e9c50 to your computer and use it in GitHub Desktop.
function onOpen() {
// Add a menu with some items, some separators, and a sub-menu.
DocumentApp.getUi().createMenu('Utilities')
.addItem('Insert Date', 'insertAtCursor')
.addItem('Insert Time', 'insertTimeAtCursor')
.addItem('Insert Long Date', 'insertLDateAtCursor')
.addItem('Insert Date and Time', 'insertDTAtCursor')
.addToUi();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment