Created
May 12, 2014 14:22
-
-
Save cmcdevitt/d77de635802bddb4d462 to your computer and use it in GitHub Desktop.
ServiceNow start of week
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
var sevenDays = new GlideTime();sevenDays.setValue("168:00:00");var today = new GlideDateTime(gs.nowDateTime());var dtUtil = new DateTimeUtils();var firstDay = gs.getProperty("com.snc.time_card.start_day", 7);var start = dtUtil.getWeekStart(today, firstDay);start.subtract(sevenDays);start.getDisplayValue(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment