Skip to content

Instantly share code, notes, and snippets.

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 iaindooley/06f8c65d2c443ed7d06b9b7cd2eac767 to your computer and use it in GitHub Desktop.
Save iaindooley/06f8c65d2c443ed7d06b9b7cd2eac767 to your computer and use it in GitHub Desktop.
Due date set on weekend
function dueDateSetOnWeekend(notification)
{
var added = new Notification(notification).addedDueDate();
if(!new Date(added.due()).isWeekDay())
{
added.setDue(new Date(added.due()).next("Monday"));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment