Skip to content

Instantly share code, notes, and snippets.

@cmcdevitt
Last active August 29, 2015 14:01
Show Gist options
  • Select an option

  • Save cmcdevitt/2327de7144aa56a3b061 to your computer and use it in GitHub Desktop.

Select an option

Save cmcdevitt/2327de7144aa56a3b061 to your computer and use it in GitHub Desktop.
Get last week start
_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