Created
June 17, 2020 12:35
-
-
Save iaindooley/06f8c65d2c443ed7d06b9b7cd2eac767 to your computer and use it in GitHub Desktop.
Due date set on weekend
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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