Last active
August 29, 2015 14:01
-
-
Save cmcdevitt/2327de7144aa56a3b061 to your computer and use it in GitHub Desktop.
Get last week start
This file contains hidden or 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
| _getLastWeek: function(){ | |
| /*CM 22-feb-2014*/ | |
| var sevenDaysMilliSeconds = 604800000; | |
| var objLastWeek = new GlideDateTime(this.weekStart + ' 00:00:00'); | |
| objLastWeek.subtract(sevenDaysMilliSeconds); | |
| return objLastWeek.getValue().split(" ")[0]; | |
| }, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment